未验证 提交 746e7ec1 编写于 作者: I Isidor Nikolic 提交者: GitHub

Merge pull request #77213 from leorochael/leorochael-optional-autofocus-on-debug

Toggle for disabling autofocus on debugger stop
......@@ -259,6 +259,11 @@ configurationRegistry.registerConfiguration({
description: nls.localize({ comment: ['This is the description for a setting'], key: 'launch' }, "Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."),
default: { configurations: [], compounds: [] },
$ref: launchSchemaId
},
'debug.autoFocusEditor': {
type: 'boolean',
description: nls.localize('debug.autoFocusEditor', "Controls whether the workbench window should be focused when the debugger stops."),
default: true
}
}
});
......
......@@ -674,7 +674,10 @@ export class DebugSession implements IDebugSession {
if (this.configurationService.getValue<IDebugConfiguration>('debug').openDebug === 'openOnDebugBreak') {
this.viewletService.openViewlet(VIEWLET_ID);
}
this.windowService.focusWindow();
if (this.configurationService.getValue<boolean>('debug.autoFocusEditor')) {
this.windowService.focusWindow();
}
}
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册