diff --git a/src/vs/workbench/contrib/debug/browser/startView.ts b/src/vs/workbench/contrib/debug/browser/startView.ts index a8dcf0f3cef44332563239e1c42e73c5b74ffd6f..df615d75254ca0100814befd53344b47301080f3 100644 --- a/src/vs/workbench/contrib/debug/browser/startView.ts +++ b/src/vs/workbench/contrib/debug/browser/startView.ts @@ -64,8 +64,19 @@ export class StartView extends ViewPane { this.debugButton.enabled = enabled; this.runButton.enabled = enabled; - this.debugButton.label = this.debuggerLabels.length !== 1 ? localize('debug', "Debug") : localize('debugWith', "Debug with {0}", this.debuggerLabels[0]); - this.runButton.label = this.debuggerLabels.length !== 1 ? localize('run', "Run") : localize('runWith', "Run with {0}", this.debuggerLabels[0]); + const debugKeybinding = this.keybindingService.lookupKeybinding(StartAction.ID); + let debugLabel = this.debuggerLabels.length !== 1 ? localize('debug', "Debug") : localize('debugWith', "Debug with {0}", this.debuggerLabels[0]); + if (debugKeybinding) { + debugLabel += ` (${debugKeybinding.getLabel()})`; + } + this.debugButton.label = debugLabel; + + let runLabel = this.debuggerLabels.length !== 1 ? localize('run', "Run") : localize('runWith', "Run with {0}", this.debuggerLabels[0]); + const runKeybinding = this.keybindingService.lookupKeybinding(RunAction.ID); + if (runKeybinding) { + runLabel += ` (${runKeybinding.getLabel()})`; + } + this.runButton.label = runLabel; const emptyWorkbench = this.workspaceContextService.getWorkbenchState() === WorkbenchState.EMPTY; this.firstMessageContainer.innerHTML = '';