adds close workspace to data workspace view menu (#13809)

* adds close workspace to data workspace view menu

* moving vscode command out to main

* update context menu groups
This commit is contained in:
Drew Skwiers-Koballa
2020-12-20 13:14:26 -08:00
committed by GitHub
parent c7303803ba
commit 786d526e9c
3 changed files with 22 additions and 3 deletions

View File

@@ -35,6 +35,9 @@ export function activate(context: vscode.ExtensionContext): Promise<IExtension>
context.subscriptions.push(vscode.commands.registerCommand('dataworkspace.refresh', () => {
workspaceTreeDataProvider.refresh();
}));
context.subscriptions.push(vscode.commands.registerCommand('dataworkspace.close', () => {
vscode.commands.executeCommand('workbench.action.closeFolder');
}));
context.subscriptions.push(vscode.commands.registerCommand('projects.removeProject', async (treeItem: WorkspaceTreeItem) => {
await workspaceService.removeProject(vscode.Uri.file(treeItem.element.project.projectFilePath));
}));