提交 27807e35 编写于 作者: I isidor

startDebug action picks first configuration if none picked by user so far

fixes #18017
上级 f5df40a1
......@@ -133,7 +133,16 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(0),
handler(accessor: ServicesAccessor, configurationOrName: any) {
const debugService = accessor.get(IDebugService);
return debugService.createProcess(configurationOrName || debugService.getViewModel().selectedConfigurationName);
if (!configurationOrName) {
const viewModel = debugService.getViewModel();
if (!viewModel.selectedConfigurationName) {
const name = debugService.getConfigurationManager().getConfigurationNames().shift();
viewModel.setSelectedConfigurationName(name);
}
configurationOrName = viewModel.selectedConfigurationName;
}
return debugService.createProcess(configurationOrName);
},
when: CONTEXT_NOT_IN_DEBUG_MODE,
primary: undefined
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册