Skip to content

Commit a48e16e

Browse files
author
Anton Vildyaev
committed
Rename to openDebug
1 parent 73bf424 commit a48e16e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/vs/workbench/parts/debug/common/debug.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const INTERNAL_CONSOLE_OPTIONS_SCHEMA = {
5050
export const OPEN_DEBUG_OPTIONS_SCHEMA = {
5151
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart'],
5252
default: 'openOnFirstSessionStart',
53-
description: nls.localize('openDebugOnStart', "Controls whether debug viewlet should be open on debugging session start.")
53+
description: nls.localize('openDebug', "Controls whether debug viewlet should be open on debugging session start.")
5454
};
5555

5656
// raw
@@ -324,7 +324,7 @@ export enum State {
324324

325325
export interface IDebugConfiguration {
326326
allowBreakpointsEverywhere: boolean;
327-
openDebugOnStart: string;
327+
openDebug: string;
328328
openExplorerOnEnd: boolean;
329329
inlineValues: boolean;
330330
hideActionBar: boolean;

src/vs/workbench/parts/debug/electron-browser/debug.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ configurationRegistry.registerConfiguration({
188188
default: false
189189
},
190190
'debug.internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
191-
'debug.openDebugOnStart': OPEN_DEBUG_OPTIONS_SCHEMA,
191+
'debug.openDebug': OPEN_DEBUG_OPTIONS_SCHEMA,
192192
'launch': {
193193
type: 'object',
194194
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"),

src/vs/workbench/parts/debug/electron-browser/debugService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,8 @@ export class DebugService implements debug.IDebugService {
872872
this.panelService.openPanel(debug.REPL_ID, false).done(undefined, errors.onUnexpectedError);
873873
}
874874

875-
const openDebugOptions = this.configurationService.getConfiguration<debug.IDebugConfiguration>('debug').openDebugOnStart;
876-
// Open debug viewlet based on the visibility of the side bar and openDebugOnStart setting
875+
const openDebugOptions = this.configurationService.getConfiguration<debug.IDebugConfiguration>('debug').openDebug;
876+
// Open debug viewlet based on the visibility of the side bar and openDebug setting
877877
if ((this.partService.isVisible(Parts.SIDEBAR_PART) || this.contextService.getWorkbenchState() === WorkbenchState.EMPTY)
878878
&& ((openDebugOptions === 'openOnSessionStart')
879879
|| (openDebugOptions === 'openOnFirstSessionStart' && !this.viewModel.changedWorkbenchViewState))) {

0 commit comments

Comments
 (0)