提交 a48e16ec 编写于 作者: A Anton Vildyaev

Rename to openDebug

上级 73bf4242
......@@ -50,7 +50,7 @@ export const INTERNAL_CONSOLE_OPTIONS_SCHEMA = {
export const OPEN_DEBUG_OPTIONS_SCHEMA = {
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart'],
default: 'openOnFirstSessionStart',
description: nls.localize('openDebugOnStart', "Controls whether debug viewlet should be open on debugging session start.")
description: nls.localize('openDebug', "Controls whether debug viewlet should be open on debugging session start.")
};
// raw
......@@ -324,7 +324,7 @@ export enum State {
export interface IDebugConfiguration {
allowBreakpointsEverywhere: boolean;
openDebugOnStart: string;
openDebug: string;
openExplorerOnEnd: boolean;
inlineValues: boolean;
hideActionBar: boolean;
......
......@@ -188,7 +188,7 @@ configurationRegistry.registerConfiguration({
default: false
},
'debug.internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
'debug.openDebugOnStart': OPEN_DEBUG_OPTIONS_SCHEMA,
'debug.openDebug': OPEN_DEBUG_OPTIONS_SCHEMA,
'launch': {
type: 'object',
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"),
......
......@@ -872,8 +872,8 @@ export class DebugService implements debug.IDebugService {
this.panelService.openPanel(debug.REPL_ID, false).done(undefined, errors.onUnexpectedError);
}
const openDebugOptions = this.configurationService.getConfiguration<debug.IDebugConfiguration>('debug').openDebugOnStart;
// Open debug viewlet based on the visibility of the side bar and openDebugOnStart setting
const openDebugOptions = this.configurationService.getConfiguration<debug.IDebugConfiguration>('debug').openDebug;
// Open debug viewlet based on the visibility of the side bar and openDebug setting
if ((this.partService.isVisible(Parts.SIDEBAR_PART) || this.contextService.getWorkbenchState() === WorkbenchState.EMPTY)
&& ((openDebugOptions === 'openOnSessionStart')
|| (openDebugOptions === 'openOnFirstSessionStart' && !this.viewModel.changedWorkbenchViewState))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册