From 50b689ef2378b80156daa6ca688c0588d68d972c Mon Sep 17 00:00:00 2001 From: Tomer Epstein Date: Mon, 16 Mar 2020 15:11:08 +0200 Subject: [PATCH] Handle 'workbench.action.addRootFolder' vscode command Signed-off-by: Tomer Epstein --- .../src/browser/plugin-vscode-commands-contribution.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts b/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts index 7e717ec9b0575..16e4bb6dab352 100644 --- a/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts +++ b/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts @@ -180,6 +180,9 @@ export class PluginVscodeCommandsContribution implements CommandContribution { commands.registerCommand({ id: 'workbench.action.files.openFolder' }, { execute: () => commands.executeCommand(WorkspaceCommands.OPEN_FOLDER.id) }); + commands.registerCommand({ id: 'workbench.action.addRootFolder' }, { + execute: () => commands.executeCommand(WorkspaceCommands.ADD_FOLDER.id) + }); commands.registerCommand({ id: 'workbench.action.gotoLine' }, { execute: () => commands.executeCommand('editor.action.gotoLine') });