This commit is contained in:
Rob Lourens
2019-09-20 10:55:55 -07:00
parent 208a139a99
commit 70f3a0970d
10 changed files with 15 additions and 11 deletions

View File

@@ -70,12 +70,16 @@ CommandsRegistry.registerCommand({
interface INewWindowAPICommandOptions {
reuseWindow?: boolean;
remoteAuthority?: string;
}
export class NewWindowAPICommand {
public static ID = 'vscode.newWindow';
public static execute(executor: ICommandsExecutor, options?: INewWindowAPICommandOptions): Promise<any> {
return executor.executeCommand('_files.newWindow', options);
return executor.executeCommand('_files.newWindow', {
reuse: options && options.reuseWindow,
remoteAuthority: options && options.remoteAuthority
});
}
}
CommandsRegistry.registerCommand({