@codingame/monaco-vscode-debug-service-override 25.1.2 → 26.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +41 -29
  3. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +379 -255
  4. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +606 -325
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +132 -91
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +105 -103
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +258 -147
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +14 -10
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +163 -121
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +92 -41
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +13 -12
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +68 -39
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +290 -214
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +409 -260
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +14 -12
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +19 -21
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +126 -100
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +8 -9
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +160 -89
  20. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +87 -71
  21. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +270 -181
  22. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +79 -48
  23. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +149 -113
  24. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +24 -3
  25. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +201 -189
  26. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +28 -35
  27. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +10 -12
  28. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +66 -86
  29. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +24 -31
  30. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +177 -138
  31. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +55 -33
  32. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +2 -4
  33. package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +8 -12
  34. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +23 -19
  35. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +9 -15
  36. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +156 -133
  37. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +81 -52
  38. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +3 -5
  39. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +22 -14
  40. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +46 -30
  41. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +74 -52
  42. package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +11 -10
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +7 -7
@@ -10,8 +10,8 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
10
10
  class ReplAccessibilityHelp {
11
11
  constructor() {
12
12
  this.priority = 120;
13
- this.name = 'replHelp';
14
- this.when = ( ContextKeyExpr.equals('focusedView', 'workbench.panel.repl.view'));
13
+ this.name = "replHelp";
14
+ this.when = ( ContextKeyExpr.equals("focusedView", "workbench.panel.repl.view"));
15
15
  this.type = AccessibleViewType.Help;
16
16
  }
17
17
  getProvider(accessor) {
@@ -29,7 +29,9 @@ class ReplAccessibilityHelpProvider extends Disposable {
29
29
  this._replView = _replView;
30
30
  this.id = AccessibleViewProviderId.ReplHelp;
31
31
  this.verbositySettingKey = AccessibilityVerbositySettingId.Debug;
32
- this.options = { type: AccessibleViewType.Help };
32
+ this.options = {
33
+ type: AccessibleViewType.Help
34
+ };
33
35
  this._treeHadFocus = false;
34
36
  this._treeHadFocus = !!_replView.getFocusedElement();
35
37
  }
@@ -40,46 +42,37 @@ class ReplAccessibilityHelpProvider extends Disposable {
40
42
  this._replView.getReplInput().focus();
41
43
  }
42
44
  provideContent() {
43
- return [
44
- ( localize(
45
- 6981,
45
+ return [( localize(
46
+ 7292,
46
47
  "The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
47
- '<keybinding:workbench.panel.repl.view.focus>'
48
- )),
49
- ( localize(
50
- 6982,
48
+ "<keybinding:workbench.panel.repl.view.focus>"
49
+ )), ( localize(
50
+ 7293,
51
51
  "The debug console output can be navigated to from the input field with the Focus Previous Widget command{0}.",
52
- '<keybinding:widgetNavigation.focusPrevious>'
53
- )),
54
- ( localize(
55
- 6983,
52
+ "<keybinding:widgetNavigation.focusPrevious>"
53
+ )), ( localize(
54
+ 7294,
56
55
  "The debug console input can be navigated to from the output with the Focus Next Widget command{0}.",
57
- '<keybinding:widgetNavigation.focusNext>'
58
- )),
59
- ( localize(
60
- 6984,
56
+ "<keybinding:widgetNavigation.focusNext>"
57
+ )), ( localize(
58
+ 7295,
61
59
  "The debug console output history can be navigated with the up and down arrow keys."
62
- )),
63
- ( localize(
64
- 6985,
60
+ )), ( localize(
61
+ 7296,
65
62
  "The Open Accessible View command{0} will allow character by character navigation of the console output.",
66
- '<keybinding:editor.action.accessibleView>'
67
- )),
68
- ( localize(
69
- 6986,
63
+ "<keybinding:editor.action.accessibleView>"
64
+ )), ( localize(
65
+ 7297,
70
66
  "The Show Run and Debug view command{0} will open the Run and Debug view and provides more information about debugging.",
71
- '<keybinding:workbench.view.debug>'
72
- )),
73
- ( localize(
74
- 6987,
67
+ "<keybinding:workbench.view.debug>"
68
+ )), ( localize(
69
+ 7298,
75
70
  "The Debug: Clear Console command{0} will clear the console output.",
76
- '<keybinding:workbench.debug.panel.action.clearReplAction>'
77
- )),
78
- ( localize(
79
- 6988,
71
+ "<keybinding:workbench.debug.panel.action.clearReplAction>"
72
+ )), ( localize(
73
+ 7299,
80
74
  "The setting `debug.expandLazyVariables` controls whether variables are evaluated automatically. This is enabled by default when using a screen reader."
81
- )),
82
- ].join('\n');
75
+ ))].join("\n");
83
76
  }
84
77
  }
85
78
 
@@ -13,8 +13,8 @@ import { Position } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/c
13
13
  class ReplAccessibleView {
14
14
  constructor() {
15
15
  this.priority = 70;
16
- this.name = 'debugConsole';
17
- this.when = ( ContextKeyExpr.equals('focusedView', 'workbench.panel.repl.view'));
16
+ this.name = "debugConsole";
17
+ this.when = ( ContextKeyExpr.equals("focusedView", "workbench.panel.repl.view"));
18
18
  this.type = AccessibleViewType.View;
19
19
  }
20
20
  getProvider(accessor) {
@@ -50,16 +50,16 @@ let ReplOutputAccessibleViewProvider = class ReplOutputAccessibleViewProvider ex
50
50
  provideContent() {
51
51
  const debugSession = this._replView.getDebugSession();
52
52
  if (!debugSession) {
53
- return 'No debug session available.';
53
+ return "No debug session available.";
54
54
  }
55
55
  const elements = debugSession.getReplElements();
56
56
  if (!elements.length) {
57
- return 'No output in the debug console.';
57
+ return "No output in the debug console.";
58
58
  }
59
59
  if (!this._content) {
60
60
  this._updateContent(elements);
61
61
  }
62
- return this._content ?? ( elements.map(e => ( e.toString(true)))).join('\n');
62
+ return this._content ?? ( elements.map(e => ( e.toString(true)))).join("\n");
63
63
  }
64
64
  onClose() {
65
65
  this._content = undefined;
@@ -90,7 +90,7 @@ let ReplOutputAccessibleViewProvider = class ReplOutputAccessibleViewProvider ex
90
90
  let line = 1;
91
91
  const content = [];
92
92
  for (const e of elements) {
93
- content.push(( e.toString()).replace(/\n/g, ''));
93
+ content.push(( e.toString()).replace(/\n/g, ""));
94
94
  this._elementPositionMap.set(e.getId(), ( new Position(line, 1)));
95
95
  line++;
96
96
  if (dataSource.hasChildren(e)) {
@@ -101,18 +101,16 @@ let ReplOutputAccessibleViewProvider = class ReplOutputAccessibleViewProvider ex
101
101
  if (!( this._elementPositionMap.has(id))) {
102
102
  this._elementPositionMap.set(id, ( new Position(line, 1)));
103
103
  }
104
- childContent.push(' ' + ( child.toString()));
104
+ childContent.push(" " + ( child.toString()));
105
105
  line++;
106
106
  }
107
- content.push(childContent.join('\n'));
107
+ content.push(childContent.join("\n"));
108
108
  }
109
109
  }
110
- this._content = content.join('\n');
110
+ this._content = content.join("\n");
111
111
  this._onDidResolveChildren.fire();
112
112
  }
113
113
  };
114
- ReplOutputAccessibleViewProvider = ( __decorate([
115
- ( __param(2, IAccessibleViewService))
116
- ], ReplOutputAccessibleViewProvider));
114
+ ReplOutputAccessibleViewProvider = ( __decorate([( __param(2, IAccessibleViewService))], ReplOutputAccessibleViewProvider));
117
115
 
118
116
  export { ReplAccessibleView };
@@ -14,8 +14,8 @@ import { VARIABLES_VIEW_ID, WATCH_VIEW_ID, CALLSTACK_VIEW_ID, LOADED_SCRIPTS_VIE
14
14
  class RunAndDebugAccessibilityHelp {
15
15
  constructor() {
16
16
  this.priority = 120;
17
- this.name = 'runAndDebugHelp';
18
- this.when = ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals('activeViewlet', 'workbench.view.debug')), SidebarFocusContext)), ( ContextKeyExpr.equals(FocusedViewContext.key, VARIABLES_VIEW_ID)), ( ContextKeyExpr.equals(FocusedViewContext.key, WATCH_VIEW_ID)), ( ContextKeyExpr.equals(FocusedViewContext.key, CALLSTACK_VIEW_ID)), ( ContextKeyExpr.equals(FocusedViewContext.key, LOADED_SCRIPTS_VIEW_ID)), ( ContextKeyExpr.equals(FocusedViewContext.key, BREAKPOINTS_VIEW_ID))));
17
+ this.name = "runAndDebugHelp";
18
+ this.when = ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals("activeViewlet", "workbench.view.debug")), SidebarFocusContext)), ( ContextKeyExpr.equals(FocusedViewContext.key, VARIABLES_VIEW_ID)), ( ContextKeyExpr.equals(FocusedViewContext.key, WATCH_VIEW_ID)), ( ContextKeyExpr.equals(FocusedViewContext.key, CALLSTACK_VIEW_ID)), ( ContextKeyExpr.equals(FocusedViewContext.key, LOADED_SCRIPTS_VIEW_ID)), ( ContextKeyExpr.equals(FocusedViewContext.key, BREAKPOINTS_VIEW_ID))));
19
19
  this.type = AccessibleViewType.Help;
20
20
  }
21
21
  getProvider(accessor) {
@@ -29,112 +29,92 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
29
29
  this._viewsService = _viewsService;
30
30
  this.id = AccessibleViewProviderId.RunAndDebug;
31
31
  this.verbositySettingKey = AccessibilityVerbositySettingId.Debug;
32
- this.options = { type: AccessibleViewType.Help };
32
+ this.options = {
33
+ type: AccessibleViewType.Help
34
+ };
33
35
  this._focusedView = this._viewsService.getFocusedViewName();
34
36
  }
35
37
  onClose() {
36
38
  switch (this._focusedView) {
37
- case 'Watch':
38
- this._commandService.executeCommand('workbench.debug.action.focusWatchView');
39
- break;
40
- case 'Variables':
41
- this._commandService.executeCommand('workbench.debug.action.focusVariablesView');
42
- break;
43
- case 'Call Stack':
44
- this._commandService.executeCommand('workbench.debug.action.focusCallStackView');
45
- break;
46
- case 'Breakpoints':
47
- this._commandService.executeCommand('workbench.debug.action.focusBreakpointsView');
48
- break;
49
- default:
50
- this._commandService.executeCommand('workbench.view.debug');
39
+ case "Watch":
40
+ this._commandService.executeCommand("workbench.debug.action.focusWatchView");
41
+ break;
42
+ case "Variables":
43
+ this._commandService.executeCommand("workbench.debug.action.focusVariablesView");
44
+ break;
45
+ case "Call Stack":
46
+ this._commandService.executeCommand("workbench.debug.action.focusCallStackView");
47
+ break;
48
+ case "Breakpoints":
49
+ this._commandService.executeCommand("workbench.debug.action.focusBreakpointsView");
50
+ break;
51
+ default:
52
+ this._commandService.executeCommand("workbench.view.debug");
51
53
  }
52
54
  }
53
55
  provideContent() {
54
- return [
55
- ( localize(
56
- 6994,
56
+ return [( localize(
57
+ 7305,
57
58
  "The Show Run and Debug view command{0} will open the current view.",
58
- '<keybinding:workbench.view.debug>'
59
- )),
60
- ( localize(
61
- 6995,
59
+ "<keybinding:workbench.view.debug>"
60
+ )), ( localize(
61
+ 7306,
62
62
  "The Debug: Start Debugging command{0} will start a debug session.",
63
- '<keybinding:workbench.action.debug.start>'
64
- )),
65
- ( localize(
66
- 6996,
63
+ "<keybinding:workbench.action.debug.start>"
64
+ )), ( localize(
65
+ 7307,
67
66
  "Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
68
- '<keybinding:workbench.panel.repl.view.focus>'
69
- )),
70
- AccessibilityHelpNLS.setBreakpoint,
71
- AccessibilityHelpNLS.addToWatch,
72
- ( localize(6997, "Once debugging, the following commands will be available:")),
73
- ( localize(
74
- 6998,
67
+ "<keybinding:workbench.panel.repl.view.focus>"
68
+ )), AccessibilityHelpNLS.setBreakpoint, AccessibilityHelpNLS.addToWatch, ( localize(7308, "Once debugging, the following commands will be available:")), ( localize(
69
+ 7309,
75
70
  "- Debug: Restart Debugging command{0} will restart the current debug session.",
76
- '<keybinding:workbench.action.debug.restart>'
77
- )),
78
- ( localize(
79
- 6999,
71
+ "<keybinding:workbench.action.debug.restart>"
72
+ )), ( localize(
73
+ 7310,
80
74
  "- Debug: Stop Debugging command{0} will stop the current debugging session.",
81
- '<keybinding:workbench.action.debug.stop>'
82
- )),
83
- ( localize(
84
- 7000,
75
+ "<keybinding:workbench.action.debug.stop>"
76
+ )), ( localize(
77
+ 7311,
85
78
  "- Debug: Continue command{0} will continue execution until the next breakpoint.",
86
- '<keybinding:workbench.action.debug.continue>'
87
- )),
88
- ( localize(
89
- 7001,
79
+ "<keybinding:workbench.action.debug.continue>"
80
+ )), ( localize(
81
+ 7312,
90
82
  "- Debug: Step Into command{0} will step into the next function call.",
91
- '<keybinding:workbench.action.debug.stepInto>'
92
- )),
93
- ( localize(
94
- 7002,
83
+ "<keybinding:workbench.action.debug.stepInto>"
84
+ )), ( localize(
85
+ 7313,
95
86
  "- Debug: Step Over command{0} will step over the current function call.",
96
- '<keybinding:workbench.action.debug.stepOver>'
97
- )),
98
- ( localize(
99
- 7003,
87
+ "<keybinding:workbench.action.debug.stepOver>"
88
+ )), ( localize(
89
+ 7314,
100
90
  "- Debug: Step Out command{0} will step out of the current function call.",
101
- '<keybinding:workbench.action.debug.stepOut>'
102
- )),
103
- ( localize(
104
- 7004,
105
- 'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
106
- )),
107
- ( localize(
108
- 7005,
91
+ "<keybinding:workbench.action.debug.stepOut>"
92
+ )), ( localize(
93
+ 7315,
94
+ "The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:"
95
+ )), ( localize(
96
+ 7316,
109
97
  "- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
110
- '<keybinding:workbench.debug.action.focusBreakpointsView>'
111
- )),
112
- ( localize(
113
- 7006,
98
+ "<keybinding:workbench.debug.action.focusBreakpointsView>"
99
+ )), ( localize(
100
+ 7317,
114
101
  "- Debug: Focus Call Stack View command{0} will focus the call stack view.",
115
- '<keybinding:workbench.debug.action.focusCallStackView>'
116
- )),
117
- ( localize(
118
- 7007,
102
+ "<keybinding:workbench.debug.action.focusCallStackView>"
103
+ )), ( localize(
104
+ 7318,
119
105
  "- Debug: Focus Variables View command{0} will focus the variables view.",
120
- '<keybinding:workbench.debug.action.focusVariablesView>'
121
- )),
122
- ( localize(
123
- 7008,
106
+ "<keybinding:workbench.debug.action.focusVariablesView>"
107
+ )), ( localize(
108
+ 7319,
124
109
  "- Debug: Focus Watch View command{0} will focus the watch view.",
125
- '<keybinding:workbench.debug.action.focusWatchView>'
126
- )),
127
- ( localize(
128
- 7009,
110
+ "<keybinding:workbench.debug.action.focusWatchView>"
111
+ )), ( localize(
112
+ 7320,
129
113
  "The setting {0} controls whether watch variable changes are announced.",
130
- 'accessibility.debugWatchVariableAnnouncements'
131
- )),
132
- ].join('\n');
114
+ "accessibility.debugWatchVariableAnnouncements"
115
+ ))].join("\n");
133
116
  }
134
117
  };
135
- RunAndDebugAccessibilityHelpProvider = ( __decorate([
136
- ( __param(0, ICommandService)),
137
- ( __param(1, IViewsService))
138
- ], RunAndDebugAccessibilityHelpProvider));
118
+ RunAndDebugAccessibilityHelpProvider = ( __decorate([( __param(0, ICommandService)), ( __param(1, IViewsService))], RunAndDebugAccessibilityHelpProvider));
139
119
 
140
120
  export { RunAndDebugAccessibilityHelp };
@@ -21,29 +21,29 @@ import { IStatusbarService } from '@codingame/monaco-vscode-api/vscode/vs/workbe
21
21
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
22
22
  import { createStyleSheet } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domStylesheets';
23
23
 
24
- const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackground', {
25
- dark: '#CC6633',
26
- light: '#CC6633',
27
- hcDark: '#BA592C',
28
- hcLight: '#B5200D'
24
+ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor("statusBar.debuggingBackground", {
25
+ dark: "#CC6633",
26
+ light: "#CC6633",
27
+ hcDark: "#BA592C",
28
+ hcLight: "#B5200D"
29
29
  }, ( localize(
30
- 7010,
30
+ 7321,
31
31
  "Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
32
32
  )));
33
- const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
33
+ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor("statusBar.debuggingForeground", {
34
34
  dark: STATUS_BAR_FOREGROUND,
35
35
  light: STATUS_BAR_FOREGROUND,
36
36
  hcDark: STATUS_BAR_FOREGROUND,
37
- hcLight: '#FFFFFF'
37
+ hcLight: "#FFFFFF"
38
38
  }, ( localize(
39
- 7011,
39
+ 7322,
40
40
  "Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
41
41
  )));
42
- const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
43
- 7012,
42
+ const STATUS_BAR_DEBUGGING_BORDER = registerColor("statusBar.debuggingBorder", STATUS_BAR_BORDER, ( localize(
43
+ 7323,
44
44
  "Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window"
45
45
  )));
46
- const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(7013, "Command center background color when a program is being debugged")), true);
46
+ const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor("commandCenter.debuggingBackground", ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(7324, "Command center background color when a program is being debugged")), true);
47
47
  let StatusBarColorProvider = class StatusBarColorProvider {
48
48
  set enabled(enabled) {
49
49
  if (enabled === !!this.disposable) {
@@ -54,10 +54,9 @@ let StatusBarColorProvider = class StatusBarColorProvider {
54
54
  priority: 10,
55
55
  foreground: STATUS_BAR_DEBUGGING_FOREGROUND,
56
56
  background: STATUS_BAR_DEBUGGING_BACKGROUND,
57
- border: STATUS_BAR_DEBUGGING_BORDER,
57
+ border: STATUS_BAR_DEBUGGING_BORDER
58
58
  });
59
- }
60
- else {
59
+ } else {
61
60
  this.disposable.dispose();
62
61
  this.disposable = undefined;
63
62
  }
@@ -71,40 +70,34 @@ let StatusBarColorProvider = class StatusBarColorProvider {
71
70
  this.styleSheet = createStyleSheet();
72
71
  this.debugService.onDidChangeState(this.update, this, this.disposables);
73
72
  this.contextService.onDidChangeWorkbenchState(this.update, this, this.disposables);
74
- this.configurationService.onDidChangeConfiguration((e) => {
75
- if (e.affectsConfiguration('debug.enableStatusBarColor') || e.affectsConfiguration('debug.toolBarLocation')) {
73
+ this.configurationService.onDidChangeConfiguration(e => {
74
+ if (e.affectsConfiguration("debug.enableStatusBarColor") || e.affectsConfiguration("debug.toolBarLocation")) {
76
75
  this.update();
77
76
  }
78
77
  }, undefined, this.disposables);
79
78
  this.update();
80
79
  }
81
80
  update() {
82
- const debugConfig = this.configurationService.getValue('debug');
81
+ const debugConfig = this.configurationService.getValue("debug");
83
82
  const isInDebugMode = isStatusbarInDebugMode(this.debugService.state, this.debugService.getModel().getSessions());
84
83
  if (!debugConfig.enableStatusBarColor) {
85
84
  this.enabled = false;
86
- }
87
- else {
85
+ } else {
88
86
  this.enabled = isInDebugMode;
89
87
  }
90
- const isInCommandCenter = debugConfig.toolBarLocation === 'commandCenter';
88
+ const isInCommandCenter = debugConfig.toolBarLocation === "commandCenter";
91
89
  this.styleSheet.textContent = isInCommandCenter && isInDebugMode ? `
92
- .monaco-workbench {
93
- ${asCssVariableName(COMMAND_CENTER_BACKGROUND)}: ${asCssVariable(COMMAND_CENTER_DEBUGGING_BACKGROUND)};
94
- }
95
- ` : '';
90
+ .monaco-workbench {
91
+ ${asCssVariableName(COMMAND_CENTER_BACKGROUND)}: ${asCssVariable(COMMAND_CENTER_DEBUGGING_BACKGROUND)};
92
+ }
93
+ ` : "";
96
94
  }
97
95
  dispose() {
98
96
  this.disposable?.dispose();
99
97
  this.disposables.dispose();
100
98
  }
101
99
  };
102
- StatusBarColorProvider = ( __decorate([
103
- ( __param(0, IDebugService)),
104
- ( __param(1, IWorkspaceContextService)),
105
- ( __param(2, IStatusbarService)),
106
- ( __param(3, IConfigurationService))
107
- ], StatusBarColorProvider));
100
+ StatusBarColorProvider = ( __decorate([( __param(0, IDebugService)), ( __param(1, IWorkspaceContextService)), ( __param(2, IStatusbarService)), ( __param(3, IConfigurationService))], StatusBarColorProvider));
108
101
  function isStatusbarInDebugMode(state, sessions) {
109
102
  if (state === State.Inactive || state === State.Initializing || sessions.every(s => s.suppressDebugStatusbar || s.configuration?.noDebug)) {
110
103
  return false;