Skip to content

Commit

Permalink
Debug view should show when a breakpoint is hit
Browse files Browse the repository at this point in the history
fixes #119646
  • Loading branch information
isidorn committed Mar 30, 2021
1 parent 770ba2b commit 1f06361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ configurationRegistry.registerConfiguration({
},
'debug.openDebug': {
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
default: 'openOnFirstSessionStart',
default: 'openOnDebugBreak',
description: nls.localize('openDebug', "Controls when the debug view should open.")
},
'debug.showSubSessionsInToolBar': {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/debug/browser/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export class DebugService implements IDebugService {

const openDebug = this.configurationService.getValue<IDebugConfiguration>('debug').openDebug;
// Open debug viewlet based on the visibility of the side bar and openDebug setting. Do not open for 'run without debug'
if (!configuration.resolved.noDebug && (openDebug === 'openOnSessionStart' || (openDebug === 'openOnFirstSessionStart' && this.viewModel.firstSessionStart))) {
if (!configuration.resolved.noDebug && (openDebug === 'openOnSessionStart' || (openDebug !== 'neverOpen' && this.viewModel.firstSessionStart))) {
await this.viewletService.openViewlet(VIEWLET_ID);
}

Expand Down

0 comments on commit 1f06361

Please sign in to comment.