@codingame/monaco-vscode-debug-service-override 11.1.2 → 12.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.
- package/index.d.ts +2 -1
- package/index.js +27 -1
- package/package.json +42 -8
- package/service-override/tools/debugAssets.d.ts +1 -0
- package/service-override/tools/debugAssets.js +5 -0
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.d.ts +28 -0
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.d.ts +79 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +24 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +108 -132
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +208 -264
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +46 -40
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +72 -54
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.d.ts +91 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +151 -148
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +10 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +65 -107
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +108 -105
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +49 -37
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +11 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +4 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +24 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.d.ts +160 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +194 -169
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +206 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +150 -173
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +14 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +76 -68
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +4 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +70 -94
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +59 -84
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +61 -60
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +19 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +7 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +55 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.d.ts +120 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +62 -61
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +148 -155
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +39 -38
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +8 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +6 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.d.ts +131 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +42 -40
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +74 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +16 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +74 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +63 -63
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +53 -66
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +3 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +16 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +11 -10
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +51 -50
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +26 -22
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +3 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +83 -84
- package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +5 -4
- package/debug.js +0 -26
- package/tools/debugAssets.js +0 -4
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
+
import { AccessibleViewType, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
2
4
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
3
5
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
4
7
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
5
8
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
6
9
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
@@ -12,16 +15,11 @@ class RunAndDebugAccessibilityHelp {
|
|
|
12
15
|
constructor() {
|
|
13
16
|
this.priority = 120;
|
|
14
17
|
this.name = 'runAndDebugHelp';
|
|
15
|
-
this.when = (
|
|
16
|
-
|
|
17
|
-
SidebarFocusContext
|
|
18
|
-
)), (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
|
-
this.type = "help" ;
|
|
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
|
+
this.type = AccessibleViewType.Help;
|
|
20
20
|
}
|
|
21
21
|
getProvider(accessor) {
|
|
22
|
-
return (
|
|
23
|
-
(new RunAndDebugAccessibilityHelpProvider(accessor.get(ICommandService), accessor.get(IViewsService)))
|
|
24
|
-
);
|
|
22
|
+
return ( new RunAndDebugAccessibilityHelpProvider(accessor.get(ICommandService), accessor.get(IViewsService)));
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpProvider extends Disposable {
|
|
@@ -29,9 +27,9 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
29
27
|
super();
|
|
30
28
|
this._commandService = _commandService;
|
|
31
29
|
this._viewsService = _viewsService;
|
|
32
|
-
this.id =
|
|
33
|
-
this.verbositySettingKey =
|
|
34
|
-
this.options = { type:
|
|
30
|
+
this.id = AccessibleViewProviderId.RunAndDebug;
|
|
31
|
+
this.verbositySettingKey = AccessibilityVerbositySettingId.Debug;
|
|
32
|
+
this.options = { type: AccessibleViewType.Help };
|
|
35
33
|
this._focusedView = this._viewsService.getFocusedViewName();
|
|
36
34
|
}
|
|
37
35
|
onClose() {
|
|
@@ -55,88 +53,88 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
55
53
|
provideContent() {
|
|
56
54
|
return [
|
|
57
55
|
( localize(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
5459,
|
|
57
|
+
"The Show Run and Debug view command{0} will open the current view.",
|
|
58
|
+
'<keybinding:workbench.view.debug>'
|
|
59
|
+
)),
|
|
62
60
|
( localize(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
5460,
|
|
62
|
+
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
63
|
+
'<keybinding:workbench.action.debug.start>'
|
|
64
|
+
)),
|
|
67
65
|
( localize(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
5461,
|
|
67
|
+
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
68
|
+
'<keybinding:workbench.panel.repl.view.focus>'
|
|
69
|
+
)),
|
|
72
70
|
AccessibilityHelpNLS.setBreakpoint,
|
|
73
71
|
AccessibilityHelpNLS.addToWatch,
|
|
74
|
-
( localize(
|
|
72
|
+
( localize(5462, "Once debugging, the following commands will be available:")),
|
|
75
73
|
( localize(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
5463,
|
|
75
|
+
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
76
|
+
'<keybinding:workbench.action.debug.restart>'
|
|
77
|
+
)),
|
|
80
78
|
( localize(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
5464,
|
|
80
|
+
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
81
|
+
'<keybinding:workbench.action.debug.stop>'
|
|
82
|
+
)),
|
|
85
83
|
( localize(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
5465,
|
|
85
|
+
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
86
|
+
'<keybinding:workbench.action.debug.continue>'
|
|
87
|
+
)),
|
|
90
88
|
( localize(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
5466,
|
|
90
|
+
"- Debug: Step Into command{0} will step into the next function call.",
|
|
91
|
+
'<keybinding:workbench.action.debug.stepInto>'
|
|
92
|
+
)),
|
|
95
93
|
( localize(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
5467,
|
|
95
|
+
"- Debug: Step Over command{0} will step over the current function call.",
|
|
96
|
+
'<keybinding:workbench.action.debug.stepOver>'
|
|
97
|
+
)),
|
|
100
98
|
( localize(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
5468,
|
|
100
|
+
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
101
|
+
'<keybinding:workbench.action.debug.stepOut>'
|
|
102
|
+
)),
|
|
105
103
|
( localize(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
5469,
|
|
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
|
+
)),
|
|
109
107
|
( localize(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
5470,
|
|
109
|
+
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
110
|
+
'<keybinding:workbench.debug.action.focusBreakpointsView>'
|
|
111
|
+
)),
|
|
114
112
|
( localize(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
5471,
|
|
114
|
+
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
115
|
+
'<keybinding:workbench.debug.action.focusCallStackView>'
|
|
116
|
+
)),
|
|
119
117
|
( localize(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
5472,
|
|
119
|
+
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
120
|
+
'<keybinding:workbench.debug.action.focusVariablesView>'
|
|
121
|
+
)),
|
|
124
122
|
( localize(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
5473,
|
|
124
|
+
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
125
|
+
'<keybinding:workbench.debug.action.focusWatchView>'
|
|
126
|
+
)),
|
|
129
127
|
( localize(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
5474,
|
|
129
|
+
"The setting {0} controls whether watch variable changes are announced.",
|
|
130
|
+
'accessibility.debugWatchVariableAnnouncements'
|
|
131
|
+
)),
|
|
134
132
|
].join('\n');
|
|
135
133
|
}
|
|
136
134
|
};
|
|
137
|
-
RunAndDebugAccessibilityHelpProvider = (
|
|
138
|
-
(
|
|
139
|
-
(
|
|
140
|
-
], RunAndDebugAccessibilityHelpProvider))
|
|
135
|
+
RunAndDebugAccessibilityHelpProvider = ( __decorate([
|
|
136
|
+
( __param(0, ICommandService)),
|
|
137
|
+
( __param(1, IViewsService))
|
|
138
|
+
], RunAndDebugAccessibilityHelpProvider));
|
|
141
139
|
|
|
142
140
|
export { RunAndDebugAccessibilityHelp };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
2
|
+
import { State, IDebugSession } from "vscode/vscode/vs/workbench/contrib/debug/common/debug";
|
|
3
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
4
|
+
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
5
|
+
import { IStatusbarService } from "vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service";
|
|
6
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
|
+
import { ILayoutService } from "vscode/vscode/vs/platform/layout/browser/layoutService.service";
|
|
8
|
+
export declare const STATUS_BAR_DEBUGGING_BACKGROUND: string;
|
|
9
|
+
export declare const STATUS_BAR_DEBUGGING_FOREGROUND: string;
|
|
10
|
+
export declare const STATUS_BAR_DEBUGGING_BORDER: string;
|
|
11
|
+
export declare const COMMAND_CENTER_DEBUGGING_BACKGROUND: string;
|
|
12
|
+
export declare class StatusBarColorProvider implements IWorkbenchContribution {
|
|
13
|
+
private readonly debugService;
|
|
14
|
+
private readonly contextService;
|
|
15
|
+
private readonly statusbarService;
|
|
16
|
+
private readonly layoutService;
|
|
17
|
+
private readonly configurationService;
|
|
18
|
+
private readonly disposables;
|
|
19
|
+
private disposable;
|
|
20
|
+
private set enabled(value);
|
|
21
|
+
constructor(debugService: IDebugService, contextService: IWorkspaceContextService, statusbarService: IStatusbarService, layoutService: ILayoutService, configurationService: IConfigurationService);
|
|
22
|
+
protected update(): void;
|
|
23
|
+
dispose(): void;
|
|
24
|
+
}
|
|
25
|
+
export declare function isStatusbarInDebugMode(state: State, sessions: IDebugSession[]): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { registerColor, transparent, asCssVariableName, asCssVariable } from 'vscode/vscode/vs/platform/theme/common/colorUtils';
|
|
4
5
|
import 'vscode/vscode/vs/platform/theme/common/colors/baseColors';
|
|
@@ -11,6 +12,7 @@ import 'vscode/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
|
11
12
|
import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
12
13
|
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
13
14
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
15
|
+
import { State } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
14
16
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
15
17
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
16
18
|
import { STATUS_BAR_FOREGROUND, STATUS_BAR_BORDER, COMMAND_CENTER_BACKGROUND } from 'vscode/vscode/vs/workbench/common/theme';
|
|
@@ -25,7 +27,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackgr
|
|
|
25
27
|
hcDark: '#BA592C',
|
|
26
28
|
hcLight: '#B5200D'
|
|
27
29
|
}, ( localize(
|
|
28
|
-
|
|
30
|
+
5475,
|
|
29
31
|
"Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
30
32
|
)));
|
|
31
33
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
|
|
@@ -34,14 +36,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
|
|
|
34
36
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
35
37
|
hcLight: '#FFFFFF'
|
|
36
38
|
}, ( localize(
|
|
37
|
-
|
|
39
|
+
5476,
|
|
38
40
|
"Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
39
41
|
)));
|
|
40
42
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
|
|
41
|
-
|
|
43
|
+
5477,
|
|
42
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"
|
|
43
45
|
)));
|
|
44
|
-
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', (
|
|
46
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(5478, "Command center background color when a program is being debugged")), true);
|
|
45
47
|
let StatusBarColorProvider = class StatusBarColorProvider {
|
|
46
48
|
set enabled(enabled) {
|
|
47
49
|
if (enabled === !!this.disposable) {
|
|
@@ -66,7 +68,7 @@ let StatusBarColorProvider = class StatusBarColorProvider {
|
|
|
66
68
|
this.statusbarService = statusbarService;
|
|
67
69
|
this.layoutService = layoutService;
|
|
68
70
|
this.configurationService = configurationService;
|
|
69
|
-
this.disposables = (
|
|
71
|
+
this.disposables = ( new DisposableStore());
|
|
70
72
|
this.debugService.onDidChangeState(this.update, this, this.disposables);
|
|
71
73
|
this.contextService.onDidChangeWorkbenchState(this.update, this, this.disposables);
|
|
72
74
|
this.configurationService.onDidChangeConfiguration((e) => {
|
|
@@ -95,15 +97,15 @@ let StatusBarColorProvider = class StatusBarColorProvider {
|
|
|
95
97
|
this.disposables.dispose();
|
|
96
98
|
}
|
|
97
99
|
};
|
|
98
|
-
StatusBarColorProvider = (
|
|
99
|
-
(
|
|
100
|
-
(
|
|
101
|
-
(
|
|
102
|
-
(
|
|
103
|
-
(
|
|
104
|
-
], StatusBarColorProvider))
|
|
100
|
+
StatusBarColorProvider = ( __decorate([
|
|
101
|
+
( __param(0, IDebugService)),
|
|
102
|
+
( __param(1, IWorkspaceContextService)),
|
|
103
|
+
( __param(2, IStatusbarService)),
|
|
104
|
+
( __param(3, ILayoutService)),
|
|
105
|
+
( __param(4, IConfigurationService))
|
|
106
|
+
], StatusBarColorProvider));
|
|
105
107
|
function isStatusbarInDebugMode(state, sessions) {
|
|
106
|
-
if (state ===
|
|
108
|
+
if (state === State.Inactive || state === State.Initializing || sessions.every(s => s.suppressDebugStatusbar || s.configuration?.noDebug)) {
|
|
107
109
|
return false;
|
|
108
110
|
}
|
|
109
111
|
return true;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ActionBar } from "vscode/vscode/vs/base/browser/ui/actionbar/actionbar";
|
|
2
|
+
import { IHighlight } from "vscode/vscode/vs/base/browser/ui/highlightedlabel/highlightedLabel";
|
|
3
|
+
import { AsyncDataTree } from "vscode/vscode/vs/base/browser/ui/tree/asyncDataTree";
|
|
4
|
+
import { ITreeContextMenuEvent, ITreeNode } from "vscode/vscode/vs/base/browser/ui/tree/tree";
|
|
5
|
+
import { FuzzyScore } from "vscode/vscode/vs/base/common/filters";
|
|
6
|
+
import { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
7
|
+
import { MenuId } from "vscode/vscode/vs/platform/actions/common/actions";
|
|
8
|
+
import { IMenuService } from "vscode/vscode/vs/platform/actions/common/actions.service";
|
|
9
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
10
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
11
|
+
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
12
|
+
import { IContextViewService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
13
|
+
import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
|
|
14
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
15
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
16
|
+
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
17
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
18
|
+
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
19
|
+
import { ViewPane } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
20
|
+
import { IViewletViewOptions } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
21
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
22
|
+
import { IExpression, IScope, IViewModel } from "vscode/vscode/vs/workbench/contrib/debug/common/debug";
|
|
23
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
24
|
+
import { IDebugVisualizerService } from "vscode/vscode/vs/workbench/contrib/debug/common/debugVisualizers.service";
|
|
25
|
+
import { AbstractExpressionsRenderer, IExpressionTemplateData, IInputBoxOptions } from "./baseDebugView.js";
|
|
26
|
+
import { DebugExpressionRenderer } from "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer";
|
|
27
|
+
export declare class VariablesView extends ViewPane {
|
|
28
|
+
private readonly debugService;
|
|
29
|
+
private readonly menuService;
|
|
30
|
+
private updateTreeScheduler;
|
|
31
|
+
private needsRefresh;
|
|
32
|
+
private tree;
|
|
33
|
+
private savedViewState;
|
|
34
|
+
private autoExpandedScopes;
|
|
35
|
+
constructor(options: IViewletViewOptions, contextMenuService: IContextMenuService, debugService: IDebugService, keybindingService: IKeybindingService, configurationService: IConfigurationService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, openerService: IOpenerService, themeService: IThemeService, telemetryService: ITelemetryService, hoverService: IHoverService, menuService: IMenuService);
|
|
36
|
+
protected renderBody(container: HTMLElement): void;
|
|
37
|
+
protected layoutBody(width: number, height: number): void;
|
|
38
|
+
focus(): void;
|
|
39
|
+
collapseAll(): void;
|
|
40
|
+
private onMouseDblClick;
|
|
41
|
+
private canSetExpressionValue;
|
|
42
|
+
private onContextMenu;
|
|
43
|
+
}
|
|
44
|
+
export declare function openContextMenuForVariableTreeElement(parentContextKeyService: IContextKeyService, menuService: IMenuService, contextMenuService: IContextMenuService, menuId: MenuId, e: ITreeContextMenuEvent<IExpression | IScope>): Promise<void>;
|
|
45
|
+
export declare class VisualizedVariableRenderer extends AbstractExpressionsRenderer {
|
|
46
|
+
private readonly expressionRenderer;
|
|
47
|
+
private readonly menuService;
|
|
48
|
+
private readonly contextKeyService;
|
|
49
|
+
static readonly ID = "viz";
|
|
50
|
+
static rendererOnVisualizationRange(model: IViewModel, tree: AsyncDataTree<any, any, any>): IDisposable;
|
|
51
|
+
constructor(expressionRenderer: DebugExpressionRenderer, debugService: IDebugService, contextViewService: IContextViewService, hoverService: IHoverService, menuService: IMenuService, contextKeyService: IContextKeyService);
|
|
52
|
+
get templateId(): string;
|
|
53
|
+
renderElement(node: ITreeNode<IExpression, FuzzyScore>, index: number, data: IExpressionTemplateData): void;
|
|
54
|
+
protected renderExpression(expression: IExpression, data: IExpressionTemplateData, highlights: IHighlight[]): void;
|
|
55
|
+
protected getInputBoxOptions(expression: IExpression): IInputBoxOptions | undefined;
|
|
56
|
+
protected renderActionBar(actionBar: ActionBar, expression: IExpression, _data: IExpressionTemplateData): void;
|
|
57
|
+
}
|
|
58
|
+
export declare class VariablesRenderer extends AbstractExpressionsRenderer {
|
|
59
|
+
private readonly expressionRenderer;
|
|
60
|
+
private readonly menuService;
|
|
61
|
+
private readonly contextKeyService;
|
|
62
|
+
private readonly visualization;
|
|
63
|
+
private readonly contextMenuService;
|
|
64
|
+
static readonly ID = "variable";
|
|
65
|
+
constructor(expressionRenderer: DebugExpressionRenderer, menuService: IMenuService, contextKeyService: IContextKeyService, visualization: IDebugVisualizerService, contextMenuService: IContextMenuService, debugService: IDebugService, contextViewService: IContextViewService, hoverService: IHoverService);
|
|
66
|
+
get templateId(): string;
|
|
67
|
+
protected renderExpression(expression: IExpression, data: IExpressionTemplateData, highlights: IHighlight[]): void;
|
|
68
|
+
renderElement(node: ITreeNode<IExpression, FuzzyScore>, index: number, data: IExpressionTemplateData): void;
|
|
69
|
+
protected getInputBoxOptions(expression: IExpression): IInputBoxOptions;
|
|
70
|
+
protected renderActionBar(actionBar: ActionBar, expression: IExpression, data: IExpressionTemplateData): void;
|
|
71
|
+
private pickVisualizer;
|
|
72
|
+
private useVisualizer;
|
|
73
|
+
}
|
|
74
|
+
export declare const SET_VARIABLE_ID = "debug.setVariable";
|
|
75
|
+
export declare const VIEW_MEMORY_ID = "workbench.debug.viewlet.action.viewMemory";
|
|
76
|
+
export declare const BREAK_WHEN_VALUE_CHANGES_ID = "debug.breakWhenValueChanges";
|
|
77
|
+
export declare const BREAK_WHEN_VALUE_IS_ACCESSED_ID = "debug.breakWhenValueIsAccessed";
|
|
78
|
+
export declare const BREAK_WHEN_VALUE_IS_READ_ID = "debug.breakWhenValueIsRead";
|