add _files.openFolderPicker command

This commit is contained in:
Joao Moreno
2016-11-02 11:59:55 +01:00
parent 52b792525a
commit 954b1aa4bc
2 changed files with 13 additions and 4 deletions

View File

@@ -183,12 +183,12 @@ export class ExtHostApiCommands {
]
});
this._register('vscode.openFolder', (uri?: URI, newWindow?: boolean) => {
this._register('vscode.openFolder', (uri?: URI, forceNewWindow?: boolean) => {
if (!uri) {
return this._commands.executeCommand('_workbench.ipc', 'vscode:openFolderPicker', [newWindow]);
return this._commands.executeCommand('_files.openFolderPicker', forceNewWindow);
}
return this._commands.executeCommand('_workbench.ipc', 'vscode:windowOpen', [[uri.fsPath], newWindow]);
return this._commands.executeCommand('_workbench.ipc', 'vscode:windowOpen', [[uri.fsPath], forceNewWindow]);
}, {
description: 'Open a folder in the current window or new window depending on the newWindow argument. Note that opening in the same window will shutdown the current extension host process and start a new one on the given folder unless the newWindow parameter is set to true.',
args: [