From ff29bed7a88bdbae7ff7e08f8a0d79804fe28676 Mon Sep 17 00:00:00 2001 From: bamurtaugh Date: Mon, 10 Aug 2020 17:21:23 -0700 Subject: [PATCH] Update to use commandService --- src/vs/workbench/contrib/debug/browser/debugService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/debug/browser/debugService.ts b/src/vs/workbench/contrib/debug/browser/debugService.ts index dbdaa80335a..5dbe331e2a7 100644 --- a/src/vs/workbench/contrib/debug/browser/debugService.ts +++ b/src/vs/workbench/contrib/debug/browser/debugService.ts @@ -121,6 +121,7 @@ export class DebugService implements IDebugService { this.viewModel = new ViewModel(contextKeyService); this.taskRunner = this.instantiationService.createInstance(DebugTaskRunner); + this.commandService = this.instantiationService.createInstance(CommandService); this.toDispose.push(this.fileService.onDidFilesChange(e => this.onFileChanges(e))); this.toDispose.push(this.lifecycleService.onShutdown(this.dispose, this)); @@ -442,11 +443,11 @@ export class DebugService implements IDebugService { nls.localize('installAdditionalDebuggers', "Install {0} Extension", resolvedConfig.type), undefined, true, - async () => { + async () => this.commandService.executeCommand('debug.installAdditionalDebuggers') /*{ const viewlet = (await this.viewletService.openViewlet(EXTENSIONS_VIEWLET_ID, true))?.getViewPaneContainer() as IExtensionsViewPaneContainer; viewlet.search('tag:debuggers @sort:installs'); return this.viewletService.openViewlet(EXTENSIONS_VIEWLET_ID, true); - } + }*/ //() => this.commandService.executeCommand('debug.installAdditionalDebuggers') ));