mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
use forceReuseWindow in openNewWindow
This commit is contained in:
parent
48eb3ba4a0
commit
d3a2e0f524
|
@ -1580,8 +1580,8 @@ export class WindowsManager implements IWindowsMainService {
|
|||
if (cli && (cli.remote !== remote)) {
|
||||
cli = { ...cli, remote };
|
||||
}
|
||||
const forceNewWindow = !(options && options.reuseWindow);
|
||||
return this.open({ context, cli, forceNewWindow, forceEmpty: true });
|
||||
const forceReuseWindow = options && options.reuseWindow;
|
||||
return this.open({ context, cli, forceEmpty: true, forceReuseWindow });
|
||||
}
|
||||
|
||||
openNewTabbedWindow(context: OpenContext): ICodeWindow[] {
|
||||
|
|
Loading…
Reference in a new issue