@codingame/monaco-vscode-debug-service-override 26.2.2 → 27.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/package.json +2 -2
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.d.ts +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +6 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +104 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +9 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +25 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +52 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +14 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +107 -38
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +10 -8
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -54,62 +54,62 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
54
54
|
}
|
|
55
55
|
provideContent() {
|
|
56
56
|
return [( localize(
|
|
57
|
-
|
|
57
|
+
8130,
|
|
58
58
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
59
59
|
"<keybinding:workbench.view.debug>"
|
|
60
60
|
)), ( localize(
|
|
61
|
-
|
|
61
|
+
8131,
|
|
62
62
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
63
63
|
"<keybinding:workbench.action.debug.start>"
|
|
64
64
|
)), ( localize(
|
|
65
|
-
|
|
65
|
+
8132,
|
|
66
66
|
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
67
67
|
"<keybinding:workbench.panel.repl.view.focus>"
|
|
68
|
-
)), AccessibilityHelpNLS.setBreakpoint, AccessibilityHelpNLS.addToWatch, ( localize(
|
|
69
|
-
|
|
68
|
+
)), AccessibilityHelpNLS.setBreakpoint, AccessibilityHelpNLS.addToWatch, ( localize(8133, "Once debugging, the following commands will be available:")), ( localize(
|
|
69
|
+
8134,
|
|
70
70
|
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
71
71
|
"<keybinding:workbench.action.debug.restart>"
|
|
72
72
|
)), ( localize(
|
|
73
|
-
|
|
73
|
+
8135,
|
|
74
74
|
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
75
75
|
"<keybinding:workbench.action.debug.stop>"
|
|
76
76
|
)), ( localize(
|
|
77
|
-
|
|
77
|
+
8136,
|
|
78
78
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
79
79
|
"<keybinding:workbench.action.debug.continue>"
|
|
80
80
|
)), ( localize(
|
|
81
|
-
|
|
81
|
+
8137,
|
|
82
82
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
83
83
|
"<keybinding:workbench.action.debug.stepInto>"
|
|
84
84
|
)), ( localize(
|
|
85
|
-
|
|
85
|
+
8138,
|
|
86
86
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
87
87
|
"<keybinding:workbench.action.debug.stepOver>"
|
|
88
88
|
)), ( localize(
|
|
89
|
-
|
|
89
|
+
8139,
|
|
90
90
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
91
91
|
"<keybinding:workbench.action.debug.stepOut>"
|
|
92
92
|
)), ( localize(
|
|
93
|
-
|
|
93
|
+
8140,
|
|
94
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
95
|
)), ( localize(
|
|
96
|
-
|
|
96
|
+
8141,
|
|
97
97
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
98
98
|
"<keybinding:workbench.debug.action.focusBreakpointsView>"
|
|
99
99
|
)), ( localize(
|
|
100
|
-
|
|
100
|
+
8142,
|
|
101
101
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
102
102
|
"<keybinding:workbench.debug.action.focusCallStackView>"
|
|
103
103
|
)), ( localize(
|
|
104
|
-
|
|
104
|
+
8143,
|
|
105
105
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
106
106
|
"<keybinding:workbench.debug.action.focusVariablesView>"
|
|
107
107
|
)), ( localize(
|
|
108
|
-
|
|
108
|
+
8144,
|
|
109
109
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
110
110
|
"<keybinding:workbench.debug.action.focusWatchView>"
|
|
111
111
|
)), ( localize(
|
|
112
|
-
|
|
112
|
+
8145,
|
|
113
113
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
114
114
|
"accessibility.debugWatchVariableAnnouncements"
|
|
115
115
|
))].join("\n");
|
|
@@ -27,7 +27,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor("statusBar.debuggingBackgr
|
|
|
27
27
|
hcDark: "#BA592C",
|
|
28
28
|
hcLight: "#B5200D"
|
|
29
29
|
}, ( localize(
|
|
30
|
-
|
|
30
|
+
8146,
|
|
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
33
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor("statusBar.debuggingForeground", {
|
|
@@ -36,14 +36,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor("statusBar.debuggingForegr
|
|
|
36
36
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
37
37
|
hcLight: "#FFFFFF"
|
|
38
38
|
}, ( localize(
|
|
39
|
-
|
|
39
|
+
8147,
|
|
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
42
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor("statusBar.debuggingBorder", STATUS_BAR_BORDER, ( localize(
|
|
43
|
-
|
|
43
|
+
8148,
|
|
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(
|
|
46
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor("commandCenter.debuggingBackground", ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(8149, "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) {
|
|
@@ -73,10 +73,10 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
73
73
|
this.menuService = menuService;
|
|
74
74
|
this.logService = logService;
|
|
75
75
|
this.needsRefresh = false;
|
|
76
|
-
this.watchExpressionsUpdatedScheduler = ( new RunOnceScheduler(() => {
|
|
76
|
+
this.watchExpressionsUpdatedScheduler = this._register(( new RunOnceScheduler(() => {
|
|
77
77
|
this.needsRefresh = false;
|
|
78
78
|
this.tree.updateChildren();
|
|
79
|
-
}, 50));
|
|
79
|
+
}, 50)));
|
|
80
80
|
this.watchExpressionsExist = CONTEXT_WATCH_EXPRESSIONS_EXIST.bindTo(contextKeyService);
|
|
81
81
|
this.watchExpressionsExist.set(this.debugService.getModel().getWatchExpressions().length > 0);
|
|
82
82
|
this.expressionRenderer = instantiationService.createInstance(DebugExpressionRenderer);
|
|
@@ -320,7 +320,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
320
320
|
if (settingValue) {
|
|
321
321
|
return {
|
|
322
322
|
initialValue: expression.value,
|
|
323
|
-
ariaLabel: ( localize(
|
|
323
|
+
ariaLabel: ( localize(8158, "Type new value")),
|
|
324
324
|
onFinish: async (value, success) => {
|
|
325
325
|
if (success && value) {
|
|
326
326
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -334,8 +334,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
334
334
|
}
|
|
335
335
|
return {
|
|
336
336
|
initialValue: expression.name ? expression.name : "",
|
|
337
|
-
ariaLabel: ( localize(
|
|
338
|
-
placeholder: ( localize(
|
|
337
|
+
ariaLabel: ( localize(8159, "Type watch expression")),
|
|
338
|
+
placeholder: ( localize(8160, "Expression to watch")),
|
|
339
339
|
onFinish: (value, success) => {
|
|
340
340
|
if (success && value) {
|
|
341
341
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -431,13 +431,13 @@ async function getContextForWatchExpressionMenuWithDataAccess(parentContext, exp
|
|
|
431
431
|
}
|
|
432
432
|
class WatchExpressionsAccessibilityProvider {
|
|
433
433
|
getWidgetAriaLabel() {
|
|
434
|
-
return localize(
|
|
434
|
+
return localize(8161, "Debug Watch Expressions");
|
|
435
435
|
}
|
|
436
436
|
getAriaLabel(element) {
|
|
437
437
|
if (element instanceof Expression) {
|
|
438
|
-
return localize(
|
|
438
|
+
return localize(8162, "{0}, value {1}", element.name, element.value);
|
|
439
439
|
}
|
|
440
|
-
return localize(
|
|
440
|
+
return localize(8163, "{0}, value {1}", element.name, element.value);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
class WatchExpressionsDragAndDrop {
|
|
@@ -528,7 +528,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
528
528
|
super({
|
|
529
529
|
id: "watch.collapse",
|
|
530
530
|
viewId: WATCH_VIEW_ID,
|
|
531
|
-
title: ( localize(
|
|
531
|
+
title: ( localize(8164, "Collapse All")),
|
|
532
532
|
f1: false,
|
|
533
533
|
icon: Codicon.collapseAll,
|
|
534
534
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -545,7 +545,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
const ADD_WATCH_ID = "workbench.debug.viewlet.action.addWatchExpression";
|
|
548
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
548
|
+
const ADD_WATCH_LABEL = ( localize(8165, "Add Expression"));
|
|
549
549
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
550
550
|
constructor() {
|
|
551
551
|
super({
|
|
@@ -566,7 +566,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = "workbench.debug.viewlet.action.removeAllWatchExpressions";
|
|
569
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
569
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(8166, "Remove All Expressions"));
|
|
570
570
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
571
571
|
constructor() {
|
|
572
572
|
super({
|
|
@@ -592,7 +592,7 @@ registerAction2(class CopyExpression extends ViewAction {
|
|
|
592
592
|
constructor() {
|
|
593
593
|
super({
|
|
594
594
|
id: COPY_WATCH_EXPRESSION_COMMAND_ID,
|
|
595
|
-
title: ( localize(
|
|
595
|
+
title: ( localize(8167, "Copy Expression")),
|
|
596
596
|
f1: false,
|
|
597
597
|
viewId: WATCH_VIEW_ID,
|
|
598
598
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -34,7 +34,7 @@ let WelcomeView = class WelcomeView extends ViewPane {
|
|
|
34
34
|
this.ID = "workbench.debug.welcome";
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
|
-
this.LABEL = ( localize2(
|
|
37
|
+
this.LABEL = ( localize2(8168, "Run"));
|
|
38
38
|
}
|
|
39
39
|
constructor(
|
|
40
40
|
options,
|
|
@@ -121,7 +121,7 @@ WelcomeView = ( __decorate([( __param(1, IThemeService)), ( __param(2, IKeybindi
|
|
|
121
121
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
122
122
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
123
123
|
content: ( localize(
|
|
124
|
-
|
|
124
|
+
8169,
|
|
125
125
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
126
126
|
OpenFileAction.ID
|
|
127
127
|
)),
|
|
@@ -130,14 +130,14 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
130
130
|
});
|
|
131
131
|
let debugKeybindingLabel = "";
|
|
132
132
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
133
|
-
content: `[${( localize(
|
|
133
|
+
content: `[${( localize(8170, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
134
134
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
135
135
|
group: ViewContentGroups.Debug,
|
|
136
136
|
order: 1
|
|
137
137
|
});
|
|
138
138
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
139
139
|
content: ( localize(
|
|
140
|
-
|
|
140
|
+
8171,
|
|
141
141
|
"To customize Run and Debug [create a launch.json file]({0}).",
|
|
142
142
|
`${( createCommandUri(DEBUG_CONFIGURE_COMMAND_ID, {
|
|
143
143
|
addNew: true
|
|
@@ -148,7 +148,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
148
148
|
});
|
|
149
149
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
150
150
|
content: ( localize(
|
|
151
|
-
|
|
151
|
+
8172,
|
|
152
152
|
"To customize Run and Debug, [open a folder]({0}) and create a launch.json file.",
|
|
153
153
|
(createCommandUri(OpenFolderAction.ID).toString())
|
|
154
154
|
)),
|
|
@@ -157,7 +157,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
157
157
|
});
|
|
158
158
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
159
159
|
content: ( localize(
|
|
160
|
-
|
|
160
|
+
8173,
|
|
161
161
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
162
162
|
)),
|
|
163
163
|
when: ( CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated()),
|
|
@@ -63,12 +63,12 @@ let DebugContentProvider = class DebugContentProvider extends Disposable {
|
|
|
63
63
|
session = this.debugService.getViewModel().focusedSession;
|
|
64
64
|
}
|
|
65
65
|
if (!session) {
|
|
66
|
-
return Promise.reject(( new ErrorNoTelemetry(( localize(
|
|
66
|
+
return Promise.reject(( new ErrorNoTelemetry(( localize(8240, "Unable to resolve the resource without a debug session")))));
|
|
67
67
|
}
|
|
68
68
|
const createErrModel = errMsg => {
|
|
69
69
|
this.debugService.sourceIsNotAvailable(resource);
|
|
70
70
|
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
71
|
-
const message = errMsg ? ( localize(
|
|
71
|
+
const message = errMsg ? ( localize(8241, "Could not load source '{0}': {1}.", resource.path, errMsg)) : ( localize(8242, "Could not load source '{0}'.", resource.path));
|
|
72
72
|
return this.modelService.createModel(message, languageSelection, resource);
|
|
73
73
|
};
|
|
74
74
|
return session.loadSource(resource).then(response => {
|
|
@@ -31,19 +31,19 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
31
31
|
let message;
|
|
32
32
|
if (numSessions === 1) {
|
|
33
33
|
message = ( localize(
|
|
34
|
-
|
|
34
|
+
8243,
|
|
35
35
|
"There is an active debug session, are you sure you want to stop it?"
|
|
36
36
|
));
|
|
37
37
|
} else {
|
|
38
38
|
message = ( localize(
|
|
39
|
-
|
|
39
|
+
8244,
|
|
40
40
|
"There are active debug sessions, are you sure you want to stop them?"
|
|
41
41
|
));
|
|
42
42
|
}
|
|
43
43
|
const res = await this.dialogService.confirm({
|
|
44
44
|
message,
|
|
45
45
|
type: "warning",
|
|
46
|
-
primaryButton: ( localize(
|
|
46
|
+
primaryButton: ( localize(8245, "&&Stop Debugging"))
|
|
47
47
|
});
|
|
48
48
|
return !res.confirmed;
|
|
49
49
|
}
|
|
@@ -12,7 +12,7 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
12
12
|
extensionPoint: "debuggers",
|
|
13
13
|
defaultExtensionKind: ["workspace"],
|
|
14
14
|
jsonSchema: {
|
|
15
|
-
description: ( localize(
|
|
15
|
+
description: ( localize(8253, "Contributes debug adapters.")),
|
|
16
16
|
type: "array",
|
|
17
17
|
defaultSnippets: [{
|
|
18
18
|
body: [{
|
|
@@ -31,64 +31,64 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
31
31
|
}],
|
|
32
32
|
properties: {
|
|
33
33
|
type: {
|
|
34
|
-
description: ( localize(
|
|
34
|
+
description: ( localize(8254, "Unique identifier for this debug adapter.")),
|
|
35
35
|
type: "string"
|
|
36
36
|
},
|
|
37
37
|
label: {
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(8255, "Display name for this debug adapter.")),
|
|
39
39
|
type: "string"
|
|
40
40
|
},
|
|
41
41
|
program: {
|
|
42
42
|
description: ( localize(
|
|
43
|
-
|
|
43
|
+
8256,
|
|
44
44
|
"Path to the debug adapter program. Path is either absolute or relative to the extension folder."
|
|
45
45
|
)),
|
|
46
46
|
type: "string"
|
|
47
47
|
},
|
|
48
48
|
args: {
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(8257, "Optional arguments to pass to the adapter.")),
|
|
50
50
|
type: "array"
|
|
51
51
|
},
|
|
52
52
|
runtime: {
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
8258,
|
|
55
55
|
"Optional runtime in case the program attribute is not an executable but requires a runtime."
|
|
56
56
|
)),
|
|
57
57
|
type: "string"
|
|
58
58
|
},
|
|
59
59
|
runtimeArgs: {
|
|
60
|
-
description: ( localize(
|
|
60
|
+
description: ( localize(8259, "Optional runtime arguments.")),
|
|
61
61
|
type: "array"
|
|
62
62
|
},
|
|
63
63
|
variables: {
|
|
64
64
|
description: ( localize(
|
|
65
|
-
|
|
65
|
+
8260,
|
|
66
66
|
"Mapping from interactive variables (e.g. ${action.pickProcess}) in `launch.json` to a command."
|
|
67
67
|
)),
|
|
68
68
|
type: "object"
|
|
69
69
|
},
|
|
70
70
|
initialConfigurations: {
|
|
71
|
-
description: ( localize(
|
|
71
|
+
description: ( localize(8261, "Configurations for generating the initial 'launch.json'.")),
|
|
72
72
|
type: ["array", "string"]
|
|
73
73
|
},
|
|
74
74
|
languages: {
|
|
75
75
|
description: ( localize(
|
|
76
|
-
|
|
76
|
+
8262,
|
|
77
77
|
"List of languages for which the debug extension could be considered the \"default debugger\"."
|
|
78
78
|
)),
|
|
79
79
|
type: "array"
|
|
80
80
|
},
|
|
81
81
|
configurationSnippets: {
|
|
82
|
-
description: ( localize(
|
|
82
|
+
description: ( localize(8263, "Snippets for adding new configurations in 'launch.json'.")),
|
|
83
83
|
type: "array"
|
|
84
84
|
},
|
|
85
85
|
configurationAttributes: {
|
|
86
|
-
description: ( localize(
|
|
86
|
+
description: ( localize(8264, "JSON schema configurations for validating 'launch.json'.")),
|
|
87
87
|
type: "object"
|
|
88
88
|
},
|
|
89
89
|
when: {
|
|
90
90
|
description: ( localize(
|
|
91
|
-
|
|
91
|
+
8265,
|
|
92
92
|
"Condition which must be true to enable this type of debugger. Consider using 'shellExecutionSupported', 'virtualWorkspace', 'resourceScheme' or an extension-defined context key as appropriate for this."
|
|
93
93
|
)),
|
|
94
94
|
type: "string",
|
|
@@ -96,54 +96,54 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
96
96
|
},
|
|
97
97
|
hiddenWhen: {
|
|
98
98
|
description: ( localize(
|
|
99
|
-
|
|
99
|
+
8266,
|
|
100
100
|
"When this condition is true, this debugger type is hidden from the debugger list, but is still enabled."
|
|
101
101
|
)),
|
|
102
102
|
type: "string",
|
|
103
103
|
default: ""
|
|
104
104
|
},
|
|
105
105
|
deprecated: {
|
|
106
|
-
description: ( localize(
|
|
106
|
+
description: ( localize(8267, "Optional message to mark this debug type as being deprecated.")),
|
|
107
107
|
type: "string",
|
|
108
108
|
default: ""
|
|
109
109
|
},
|
|
110
110
|
windows: {
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(8268, "Windows specific settings.")),
|
|
112
112
|
type: "object",
|
|
113
113
|
properties: {
|
|
114
114
|
runtime: {
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(8269, "Runtime used for Windows.")),
|
|
116
116
|
type: "string"
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
osx: {
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(8270, "macOS specific settings.")),
|
|
122
122
|
type: "object",
|
|
123
123
|
properties: {
|
|
124
124
|
runtime: {
|
|
125
|
-
description: ( localize(
|
|
125
|
+
description: ( localize(8271, "Runtime used for macOS.")),
|
|
126
126
|
type: "string"
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
linux: {
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(8272, "Linux specific settings.")),
|
|
132
132
|
type: "object",
|
|
133
133
|
properties: {
|
|
134
134
|
runtime: {
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(8273, "Runtime used for Linux.")),
|
|
136
136
|
type: "string"
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
strings: {
|
|
141
|
-
description: ( localize(
|
|
141
|
+
description: ( localize(8274, "UI strings contributed by this debug adapter.")),
|
|
142
142
|
type: "object",
|
|
143
143
|
properties: {
|
|
144
144
|
unverifiedBreakpoints: {
|
|
145
145
|
description: ( localize(
|
|
146
|
-
|
|
146
|
+
8275,
|
|
147
147
|
"When there are unverified breakpoints in a language supported by this debug adapter, this message will appear on the breakpoint hover and in the breakpoints view. Markdown and command links are supported."
|
|
148
148
|
)),
|
|
149
149
|
type: "string"
|
|
@@ -157,7 +157,7 @@ const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
157
157
|
const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
158
158
|
extensionPoint: "breakpoints",
|
|
159
159
|
jsonSchema: {
|
|
160
|
-
description: ( localize(
|
|
160
|
+
description: ( localize(8276, "Contributes breakpoints.")),
|
|
161
161
|
type: "array",
|
|
162
162
|
defaultSnippets: [{
|
|
163
163
|
body: [{
|
|
@@ -174,12 +174,12 @@ const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
174
174
|
}],
|
|
175
175
|
properties: {
|
|
176
176
|
language: {
|
|
177
|
-
description: ( localize(
|
|
177
|
+
description: ( localize(8277, "Allow breakpoints for this language.")),
|
|
178
178
|
type: "string"
|
|
179
179
|
},
|
|
180
180
|
when: {
|
|
181
181
|
description: ( localize(
|
|
182
|
-
|
|
182
|
+
8278,
|
|
183
183
|
"Condition which must be true to enable breakpoints in this language. Consider matching this to the debugger when clause as appropriate."
|
|
184
184
|
)),
|
|
185
185
|
type: "string",
|
|
@@ -192,7 +192,7 @@ const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
192
192
|
const presentationSchema = {
|
|
193
193
|
type: "object",
|
|
194
194
|
description: ( localize(
|
|
195
|
-
|
|
195
|
+
8279,
|
|
196
196
|
"Presentation options on how to show this configuration in the debug configuration dropdown and the command palette."
|
|
197
197
|
)),
|
|
198
198
|
properties: {
|
|
@@ -200,7 +200,7 @@ const presentationSchema = {
|
|
|
200
200
|
type: "boolean",
|
|
201
201
|
default: false,
|
|
202
202
|
description: ( localize(
|
|
203
|
-
|
|
203
|
+
8280,
|
|
204
204
|
"Controls if this configuration should be shown in the configuration dropdown and the command palette."
|
|
205
205
|
))
|
|
206
206
|
},
|
|
@@ -208,7 +208,7 @@ const presentationSchema = {
|
|
|
208
208
|
type: "string",
|
|
209
209
|
default: "",
|
|
210
210
|
description: ( localize(
|
|
211
|
-
|
|
211
|
+
8281,
|
|
212
212
|
"Group that this configuration belongs to. Used for grouping and sorting in the configuration dropdown and the command palette."
|
|
213
213
|
))
|
|
214
214
|
},
|
|
@@ -216,7 +216,7 @@ const presentationSchema = {
|
|
|
216
216
|
type: "number",
|
|
217
217
|
default: 1,
|
|
218
218
|
description: ( localize(
|
|
219
|
-
|
|
219
|
+
8282,
|
|
220
220
|
"Order of this configuration within a group. Used for grouping and sorting in the configuration dropdown and the command palette."
|
|
221
221
|
))
|
|
222
222
|
}
|
|
@@ -234,7 +234,7 @@ const defaultCompound = {
|
|
|
234
234
|
const launchSchema = {
|
|
235
235
|
id: launchSchemaId,
|
|
236
236
|
type: "object",
|
|
237
|
-
title: ( localize(
|
|
237
|
+
title: ( localize(8283, "Launch")),
|
|
238
238
|
allowTrailingCommas: true,
|
|
239
239
|
allowComments: true,
|
|
240
240
|
required: [],
|
|
@@ -246,13 +246,13 @@ const launchSchema = {
|
|
|
246
246
|
properties: {
|
|
247
247
|
version: {
|
|
248
248
|
type: "string",
|
|
249
|
-
description: ( localize(
|
|
249
|
+
description: ( localize(8284, "Version of this file format.")),
|
|
250
250
|
default: "0.2.0"
|
|
251
251
|
},
|
|
252
252
|
configurations: {
|
|
253
253
|
type: "array",
|
|
254
254
|
description: ( localize(
|
|
255
|
-
|
|
255
|
+
8285,
|
|
256
256
|
"List of configurations. Add new configurations or edit existing ones by using IntelliSense."
|
|
257
257
|
)),
|
|
258
258
|
items: {
|
|
@@ -264,7 +264,7 @@ const launchSchema = {
|
|
|
264
264
|
compounds: {
|
|
265
265
|
type: "array",
|
|
266
266
|
description: ( localize(
|
|
267
|
-
|
|
267
|
+
8286,
|
|
268
268
|
"List of compounds. Each compound references multiple configurations which will get launched together."
|
|
269
269
|
)),
|
|
270
270
|
items: {
|
|
@@ -274,7 +274,7 @@ const launchSchema = {
|
|
|
274
274
|
name: {
|
|
275
275
|
type: "string",
|
|
276
276
|
description: ( localize(
|
|
277
|
-
|
|
277
|
+
8287,
|
|
278
278
|
"Name of compound. Appears in the launch configuration drop down menu."
|
|
279
279
|
))
|
|
280
280
|
},
|
|
@@ -285,7 +285,7 @@ const launchSchema = {
|
|
|
285
285
|
items: {
|
|
286
286
|
oneOf: [{
|
|
287
287
|
enum: [],
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(8288, "Please use unique configuration names."))
|
|
289
289
|
}, {
|
|
290
290
|
type: "object",
|
|
291
291
|
required: ["name"],
|
|
@@ -293,19 +293,19 @@ const launchSchema = {
|
|
|
293
293
|
name: {
|
|
294
294
|
enum: [],
|
|
295
295
|
description: ( localize(
|
|
296
|
-
|
|
296
|
+
8287,
|
|
297
297
|
"Name of compound. Appears in the launch configuration drop down menu."
|
|
298
298
|
))
|
|
299
299
|
},
|
|
300
300
|
folder: {
|
|
301
301
|
enum: [],
|
|
302
|
-
description: ( localize(
|
|
302
|
+
description: ( localize(8289, "Name of folder in which the compound is located."))
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}]
|
|
306
306
|
},
|
|
307
307
|
description: ( localize(
|
|
308
|
-
|
|
308
|
+
8290,
|
|
309
309
|
"Names of configurations that will be started as part of this compound."
|
|
310
310
|
))
|
|
311
311
|
},
|
|
@@ -313,14 +313,14 @@ const launchSchema = {
|
|
|
313
313
|
type: "boolean",
|
|
314
314
|
default: false,
|
|
315
315
|
description: ( localize(
|
|
316
|
-
|
|
316
|
+
8291,
|
|
317
317
|
"Controls whether manually terminating one session will stop all of the compound sessions."
|
|
318
318
|
))
|
|
319
319
|
},
|
|
320
320
|
preLaunchTask: {
|
|
321
321
|
type: "string",
|
|
322
322
|
default: "",
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(8292, "Task to run before any of the compound configurations start."))
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
326
|
default: defaultCompound
|
|
@@ -349,7 +349,7 @@ class DebuggersDataRenderer extends Disposable {
|
|
|
349
349
|
dispose: () => {}
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
const headers = [( localize(
|
|
352
|
+
const headers = [( localize(8293, "Name")), ( localize(8294, "Type"))];
|
|
353
353
|
const rows = ( contrib.map(d => {
|
|
354
354
|
return [d.label ?? "", d.type];
|
|
355
355
|
}));
|
|
@@ -364,7 +364,7 @@ class DebuggersDataRenderer extends Disposable {
|
|
|
364
364
|
}
|
|
365
365
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
366
366
|
id: "debuggers",
|
|
367
|
-
label: ( localize(
|
|
367
|
+
label: ( localize(8295, "Debuggers")),
|
|
368
368
|
access: {
|
|
369
369
|
canToggle: false
|
|
370
370
|
},
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
3
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
3
4
|
import { IDebugSession, IExpression, IExpressionContainer, IStackFrame, IThread, IViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
4
|
-
export declare class ViewModel implements IViewModel {
|
|
5
|
+
export declare class ViewModel extends Disposable implements IViewModel {
|
|
5
6
|
private contextKeyService;
|
|
6
7
|
firstSessionStart: boolean;
|
|
7
8
|
private _focusedStackFrame;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { CONTEXT_EXPRESSION_SELECTED, CONTEXT_LOADED_SCRIPTS_SUPPORTED, CONTEXT_STEP_BACK_SUPPORTED, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_RESTART_FRAME_SUPPORTED, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_JUMP_TO_CURSOR_SUPPORTED, CONTEXT_SET_VARIABLE_SUPPORTED, CONTEXT_SET_DATA_BREAKPOINT_BYTES_SUPPORTED, CONTEXT_SET_EXPRESSION_SUPPORTED, CONTEXT_MULTI_SESSION_DEBUG, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_TERMINATE_THREADS_SUPPORTED, CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED, CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
4
5
|
import { isSessionAttach } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
5
6
|
|
|
6
|
-
class ViewModel {
|
|
7
|
+
class ViewModel extends Disposable {
|
|
7
8
|
constructor(contextKeyService) {
|
|
9
|
+
super();
|
|
8
10
|
this.contextKeyService = contextKeyService;
|
|
9
11
|
this.firstSessionStart = true;
|
|
10
|
-
this._onDidFocusSession = ( new Emitter());
|
|
11
|
-
this._onDidFocusThread = ( new Emitter());
|
|
12
|
-
this._onDidFocusStackFrame = ( new Emitter());
|
|
13
|
-
this._onDidSelectExpression = ( new Emitter());
|
|
14
|
-
this._onDidEvaluateLazyExpression = ( new Emitter());
|
|
15
|
-
this._onWillUpdateViews = ( new Emitter());
|
|
16
|
-
this._onDidChangeVisualization = ( new Emitter());
|
|
12
|
+
this._onDidFocusSession = this._register(( new Emitter()));
|
|
13
|
+
this._onDidFocusThread = this._register(( new Emitter()));
|
|
14
|
+
this._onDidFocusStackFrame = this._register(( new Emitter()));
|
|
15
|
+
this._onDidSelectExpression = this._register(( new Emitter()));
|
|
16
|
+
this._onDidEvaluateLazyExpression = this._register(( new Emitter()));
|
|
17
|
+
this._onWillUpdateViews = this._register(( new Emitter()));
|
|
18
|
+
this._onDidChangeVisualization = this._register(( new Emitter()));
|
|
17
19
|
this.visualized = ( new WeakMap());
|
|
18
20
|
this.preferredVisualizers = ( new Map());
|
|
19
21
|
contextKeyService.bufferChangeEvents(() => {
|
|
@@ -29,7 +29,7 @@ export declare class Debugger implements IDebugger, IDebuggerMetadata {
|
|
|
29
29
|
merge(otherDebuggerContribution: IDebuggerContribution, extensionDescription: IExtensionDescription): void;
|
|
30
30
|
startDebugging(configuration: IConfig, parentSessionId: string): Promise<boolean>;
|
|
31
31
|
createDebugAdapter(session: IDebugSession): Promise<IDebugAdapter>;
|
|
32
|
-
substituteVariables(folder: IWorkspaceFolder | undefined, config: IConfig): Promise<IConfig>;
|
|
32
|
+
substituteVariables(folder: IWorkspaceFolder | undefined, config: IConfig): Promise<IConfig | undefined>;
|
|
33
33
|
runInTerminal(args: DebugProtocol.RunInTerminalRequestArguments, sessionId: string): Promise<number | undefined>;
|
|
34
34
|
get label(): string;
|
|
35
35
|
get type(): string;
|