open new window with reuse

This commit is contained in:
Martin Aeschlimann
2019-03-25 16:33:55 +01:00
parent 0f45c39d97
commit ee2f23192c
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1567,7 +1567,8 @@ export class WindowsManager implements IWindowsMainService {
if (cli && (cli.remote !== remote)) {
cli = { ...cli, remote };
}
return this.open({ context, cli, forceNewWindow: true, forceEmpty: true });
const forceNewWindow = !(options && options.reuseWindow);
return this.open({ context, cli, forceNewWindow, forceEmpty: true });
}
openNewTabbedWindow(context: OpenContext): ICodeWindow[] {