@codingame/monaco-vscode-debug-service-override 37.2.0 → 37.3.1
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 +6 -2
- package/session.d.ts +2 -0
- package/session.js +17 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +106 -106
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +20 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +33 -33
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +35 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +58 -58
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +36 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +1 -1
- 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 +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +5 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +45 -45
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/common/nullDebugService.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/debug/common/nullDebugService.js +137 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -27,14 +27,14 @@ import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/
|
|
|
27
27
|
import { DEBUG_START_COMMAND_ID, DEBUG_CONFIGURE_COMMAND_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
28
28
|
|
|
29
29
|
const debugStartLanguageKey = "debugStartLanguage";
|
|
30
|
-
const CONTEXT_DEBUG_START_LANGUAGE =
|
|
31
|
-
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR =
|
|
30
|
+
const CONTEXT_DEBUG_START_LANGUAGE = new RawContextKey(debugStartLanguageKey, undefined);
|
|
31
|
+
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = new RawContextKey("debuggerInterestedInActiveEditor", false);
|
|
32
32
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
33
33
|
static {
|
|
34
34
|
this.ID = "workbench.debug.welcome";
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
|
-
this.LABEL = ( localize2(
|
|
37
|
+
this.LABEL = ( localize2(14046, "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
|
+
14047,
|
|
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(14048, "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
|
+
14049,
|
|
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
|
+
14050,
|
|
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
|
+
14051,
|
|
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(14118, "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(14119, "Could not load source '{0}': {1}.", resource.path, errMsg)) : ( localize(14120, "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 => {
|
|
@@ -85,7 +85,9 @@ let DebugContentProvider = class DebugContentProvider extends Disposable {
|
|
|
85
85
|
}]).then(edits => {
|
|
86
86
|
this.pendingUpdates.delete(model.id);
|
|
87
87
|
if (!myToken.token.isCancellationRequested && edits && edits.length > 0) {
|
|
88
|
-
model.applyEdits(
|
|
88
|
+
model.applyEdits(
|
|
89
|
+
edits.map(edit => EditOperation.replace(Range.lift(edit.range), edit.text))
|
|
90
|
+
);
|
|
89
91
|
}
|
|
90
92
|
return model;
|
|
91
93
|
});
|
|
@@ -31,19 +31,19 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
31
31
|
let message;
|
|
32
32
|
if (numSessions === 1) {
|
|
33
33
|
message = ( localize(
|
|
34
|
-
|
|
34
|
+
14121,
|
|
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
|
+
14122,
|
|
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(14123, "&&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(14131, "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(14132, "Unique identifier for this debug adapter.")),
|
|
35
35
|
type: "string"
|
|
36
36
|
},
|
|
37
37
|
label: {
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(14133, "Display name for this debug adapter.")),
|
|
39
39
|
type: "string"
|
|
40
40
|
},
|
|
41
41
|
program: {
|
|
42
42
|
description: ( localize(
|
|
43
|
-
|
|
43
|
+
14134,
|
|
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(14135, "Optional arguments to pass to the adapter.")),
|
|
50
50
|
type: "array"
|
|
51
51
|
},
|
|
52
52
|
runtime: {
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
14136,
|
|
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(14137, "Optional runtime arguments.")),
|
|
61
61
|
type: "array"
|
|
62
62
|
},
|
|
63
63
|
variables: {
|
|
64
64
|
description: ( localize(
|
|
65
|
-
|
|
65
|
+
14138,
|
|
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(14139, "Configurations for generating the initial 'launch.json'.")),
|
|
72
72
|
type: ["array", "string"]
|
|
73
73
|
},
|
|
74
74
|
languages: {
|
|
75
75
|
description: ( localize(
|
|
76
|
-
|
|
76
|
+
14140,
|
|
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(14141, "Snippets for adding new configurations in 'launch.json'.")),
|
|
83
83
|
type: "array"
|
|
84
84
|
},
|
|
85
85
|
configurationAttributes: {
|
|
86
|
-
description: ( localize(
|
|
86
|
+
description: ( localize(14142, "JSON schema configurations for validating 'launch.json'.")),
|
|
87
87
|
type: "object"
|
|
88
88
|
},
|
|
89
89
|
when: {
|
|
90
90
|
description: ( localize(
|
|
91
|
-
|
|
91
|
+
14143,
|
|
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
|
+
14144,
|
|
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(14145, "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(14146, "Windows specific settings.")),
|
|
112
112
|
type: "object",
|
|
113
113
|
properties: {
|
|
114
114
|
runtime: {
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(14147, "Runtime used for Windows.")),
|
|
116
116
|
type: "string"
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
osx: {
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(14148, "macOS specific settings.")),
|
|
122
122
|
type: "object",
|
|
123
123
|
properties: {
|
|
124
124
|
runtime: {
|
|
125
|
-
description: ( localize(
|
|
125
|
+
description: ( localize(14149, "Runtime used for macOS.")),
|
|
126
126
|
type: "string"
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
linux: {
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(14150, "Linux specific settings.")),
|
|
132
132
|
type: "object",
|
|
133
133
|
properties: {
|
|
134
134
|
runtime: {
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(14151, "Runtime used for Linux.")),
|
|
136
136
|
type: "string"
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
strings: {
|
|
141
|
-
description: ( localize(
|
|
141
|
+
description: ( localize(14152, "UI strings contributed by this debug adapter.")),
|
|
142
142
|
type: "object",
|
|
143
143
|
properties: {
|
|
144
144
|
unverifiedBreakpoints: {
|
|
145
145
|
description: ( localize(
|
|
146
|
-
|
|
146
|
+
14153,
|
|
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(14154, "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(14155, "Allow breakpoints for this language.")),
|
|
178
178
|
type: "string"
|
|
179
179
|
},
|
|
180
180
|
when: {
|
|
181
181
|
description: ( localize(
|
|
182
|
-
|
|
182
|
+
14156,
|
|
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
|
+
14157,
|
|
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
|
+
14158,
|
|
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
|
+
14159,
|
|
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
|
+
14160,
|
|
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(14161, "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(14162, "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
|
+
14163,
|
|
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
|
+
14164,
|
|
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
|
+
14165,
|
|
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(14166, "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
|
+
14165,
|
|
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(14167, "Name of folder in which the compound is located."))
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}]
|
|
306
306
|
},
|
|
307
307
|
description: ( localize(
|
|
308
|
-
|
|
308
|
+
14168,
|
|
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
|
+
14169,
|
|
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(14170, "Task to run before any of the compound configurations start."))
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
326
|
default: defaultCompound
|
|
@@ -349,10 +349,10 @@ class DebuggersDataRenderer extends Disposable {
|
|
|
349
349
|
dispose: () => {}
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
const headers = [( localize(
|
|
353
|
-
const rows =
|
|
352
|
+
const headers = [( localize(14171, "Name")), ( localize(14172, "Type"))];
|
|
353
|
+
const rows = contrib.map(d => {
|
|
354
354
|
return [d.label ?? "", d.type];
|
|
355
|
-
})
|
|
355
|
+
});
|
|
356
356
|
return {
|
|
357
357
|
data: {
|
|
358
358
|
headers,
|
|
@@ -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(14173, "Debuggers")),
|
|
368
368
|
access: {
|
|
369
369
|
canToggle: false
|
|
370
370
|
},
|
|
@@ -59,7 +59,7 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
59
59
|
loadBreakpoints() {
|
|
60
60
|
let result;
|
|
61
61
|
try {
|
|
62
|
-
result =
|
|
62
|
+
result = JSON.parse(
|
|
63
63
|
this.storageService.get(DEBUG_BREAKPOINTS_KEY, StorageScope.WORKSPACE, "[]")
|
|
64
64
|
).map(breakpoint => {
|
|
65
65
|
breakpoint.uri = URI.revive(breakpoint.uri);
|
|
@@ -70,7 +70,7 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
70
70
|
this.logService,
|
|
71
71
|
breakpoint.id
|
|
72
72
|
));
|
|
73
|
-
})
|
|
73
|
+
});
|
|
74
74
|
} catch (e) {
|
|
75
75
|
this.logService.error("Failed to load breakpoints from storage", e);
|
|
76
76
|
}
|
|
@@ -79,11 +79,11 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
79
79
|
loadFunctionBreakpoints() {
|
|
80
80
|
let result;
|
|
81
81
|
try {
|
|
82
|
-
result =
|
|
82
|
+
result = JSON.parse(
|
|
83
83
|
this.storageService.get(DEBUG_FUNCTION_BREAKPOINTS_KEY, StorageScope.WORKSPACE, "[]")
|
|
84
84
|
).map(fb => {
|
|
85
85
|
return ( new FunctionBreakpoint(fb, fb.id));
|
|
86
|
-
})
|
|
86
|
+
});
|
|
87
87
|
} catch (e) {
|
|
88
88
|
this.logService.error("Failed to load function breakpoints from storage", e);
|
|
89
89
|
}
|
|
@@ -92,11 +92,11 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
92
92
|
loadExceptionBreakpoints() {
|
|
93
93
|
let result;
|
|
94
94
|
try {
|
|
95
|
-
result =
|
|
95
|
+
result = JSON.parse(
|
|
96
96
|
this.storageService.get(DEBUG_EXCEPTION_BREAKPOINTS_KEY, StorageScope.WORKSPACE, "[]")
|
|
97
97
|
).map(exBreakpoint => {
|
|
98
98
|
return ( new ExceptionBreakpoint(exBreakpoint, exBreakpoint.id));
|
|
99
|
-
})
|
|
99
|
+
});
|
|
100
100
|
} catch (e) {
|
|
101
101
|
this.logService.error("Failed to load exception breakpoints from storage", e);
|
|
102
102
|
}
|
|
@@ -105,11 +105,11 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
105
105
|
loadDataBreakpoints() {
|
|
106
106
|
let result;
|
|
107
107
|
try {
|
|
108
|
-
result =
|
|
108
|
+
result = JSON.parse(
|
|
109
109
|
this.storageService.get(DEBUG_DATA_BREAKPOINTS_KEY, StorageScope.WORKSPACE, "[]")
|
|
110
110
|
).map(dbp => {
|
|
111
111
|
return ( new DataBreakpoint(dbp, dbp.id));
|
|
112
|
-
})
|
|
112
|
+
});
|
|
113
113
|
} catch (e) {
|
|
114
114
|
this.logService.error("Failed to load data breakpoints from storage", e);
|
|
115
115
|
}
|
|
@@ -118,11 +118,11 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
118
118
|
loadWatchExpressions() {
|
|
119
119
|
let result;
|
|
120
120
|
try {
|
|
121
|
-
result =
|
|
121
|
+
result = JSON.parse(
|
|
122
122
|
this.storageService.get(DEBUG_WATCH_EXPRESSIONS_KEY, StorageScope.WORKSPACE, "[]")
|
|
123
123
|
).map(watchStoredData => {
|
|
124
124
|
return ( new Expression(watchStoredData.name, watchStoredData.id));
|
|
125
|
-
})
|
|
125
|
+
});
|
|
126
126
|
} catch (e) {
|
|
127
127
|
this.logService.error("Failed to load watch expressions from storage", e);
|
|
128
128
|
}
|
|
@@ -146,10 +146,10 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
146
146
|
}
|
|
147
147
|
storeWatchExpressions(watchExpressions) {
|
|
148
148
|
if (watchExpressions.length) {
|
|
149
|
-
this.storageService.store(DEBUG_WATCH_EXPRESSIONS_KEY, JSON.stringify(
|
|
149
|
+
this.storageService.store(DEBUG_WATCH_EXPRESSIONS_KEY, JSON.stringify(watchExpressions.map(we => ({
|
|
150
150
|
name: we.name,
|
|
151
151
|
id: we.getId()
|
|
152
|
-
})))
|
|
152
|
+
}))), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
153
153
|
} else {
|
|
154
154
|
this.storageService.remove(DEBUG_WATCH_EXPRESSIONS_KEY, StorageScope.WORKSPACE);
|
|
155
155
|
}
|
|
@@ -26,8 +26,8 @@ export declare class DebugVisualizer {
|
|
|
26
26
|
private readonly viz;
|
|
27
27
|
get name(): string;
|
|
28
28
|
get iconPath(): {
|
|
29
|
-
light?: import("@codingame/monaco-vscode-api/vscode/vs/
|
|
30
|
-
dark: import("@codingame/monaco-vscode-api/vscode/vs/
|
|
29
|
+
light?: import("@codingame/monaco-vscode-api/vscode/vs/sessions/sessions.web.main.internal").URI;
|
|
30
|
+
dark: import("@codingame/monaco-vscode-api/vscode/vs/sessions/sessions.web.main.internal").URI;
|
|
31
31
|
} | undefined;
|
|
32
32
|
get iconClass(): string | undefined;
|
|
33
33
|
constructor(handle: VisualizerHandle, viz: IDebugVisualization);
|
|
@@ -71,7 +71,7 @@ let DebugVisualizerService = class DebugVisualizerService {
|
|
|
71
71
|
[CONTEXT_VARIABLE_VALUE.key, variable.value],
|
|
72
72
|
[CONTEXT_VARIABLE_TYPE.key, variable.type]
|
|
73
73
|
]);
|
|
74
|
-
const maybeVisualizers = await Promise.all(
|
|
74
|
+
const maybeVisualizers = await Promise.all(this.registrations.map(async registration => {
|
|
75
75
|
if (!overlay.contextMatchesRules(registration.expr)) {
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
@@ -89,12 +89,12 @@ let DebugVisualizerService = class DebugVisualizerService {
|
|
|
89
89
|
handle,
|
|
90
90
|
result: await handle.provideDebugVisualizers(context, token)
|
|
91
91
|
};
|
|
92
|
-
}))
|
|
92
|
+
}));
|
|
93
93
|
const ref = {
|
|
94
|
-
object: maybeVisualizers.filter(isDefined).flatMap(v =>
|
|
94
|
+
object: maybeVisualizers.filter(isDefined).flatMap(v => v.result.map(r => ( new DebugVisualizer(v.handle, r)))),
|
|
95
95
|
dispose: () => {
|
|
96
96
|
for (const viz of maybeVisualizers) {
|
|
97
|
-
viz?.handle.disposeDebugVisualizers(
|
|
97
|
+
viz?.handle.disposeDebugVisualizers(viz.result.map(r => r.id));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
};
|
|
@@ -138,7 +138,7 @@ let DebugVisualizerService = class DebugVisualizerService {
|
|
|
138
138
|
async getVisualizedChildren(session, treeId, treeElementId) {
|
|
139
139
|
const node = this.trees.get(treeId);
|
|
140
140
|
const children = (await node?.getChildren(treeElementId)) || [];
|
|
141
|
-
return
|
|
141
|
+
return children.map(c => ( new VisualizedExpression(session, this, treeId, c, undefined)));
|
|
142
142
|
}
|
|
143
143
|
async editTreeItem(treeId, treeItem, newValue) {
|
|
144
144
|
const newItem = await this.trees.get(treeId)?.editItem?.(treeItem.id, newValue);
|
|
@@ -101,7 +101,7 @@ let Debugger = class Debugger {
|
|
|
101
101
|
if (da) {
|
|
102
102
|
return Promise.resolve(da);
|
|
103
103
|
}
|
|
104
|
-
throw ( new Error(( localize(
|
|
104
|
+
throw ( new Error(( localize(14175, "Cannot find debug adapter for type '{0}'.", this.type))));
|
|
105
105
|
}
|
|
106
106
|
async substituteVariables(folder, config) {
|
|
107
107
|
const substitutedConfig = await this.adapterManager.substituteVariables(this.type, folder, config);
|
|
@@ -170,11 +170,11 @@ let Debugger = class Debugger {
|
|
|
170
170
|
scheme: Schemas.untitled,
|
|
171
171
|
path: "1"
|
|
172
172
|
}))) === "\r\n" ? "\r\n" : "\n";
|
|
173
|
-
const configs =
|
|
174
|
-
const comment1 = ( localize(
|
|
175
|
-
const comment2 = ( localize(
|
|
173
|
+
const configs = JSON.stringify(initialConfigurations, null, "\t").split("\n").map(line => "\t" + line).join(eol).trim();
|
|
174
|
+
const comment1 = ( localize(14176, "Use IntelliSense to learn about possible attributes."));
|
|
175
|
+
const comment2 = ( localize(14177, "Hover to view descriptions of existing attributes."));
|
|
176
176
|
const comment3 = ( localize(
|
|
177
|
-
|
|
177
|
+
14178,
|
|
178
178
|
"For more information, visit: {0}",
|
|
179
179
|
"https://go.microsoft.com/fwlink/?linkid=830387"
|
|
180
180
|
));
|
|
@@ -212,7 +212,7 @@ let Debugger = class Debugger {
|
|
|
212
212
|
if (!this.debuggerContribution.configurationAttributes) {
|
|
213
213
|
return null;
|
|
214
214
|
}
|
|
215
|
-
return
|
|
215
|
+
return Object.entries(this.debuggerContribution.configurationAttributes).map(([request, attributes]) => {
|
|
216
216
|
const definitionId = `${this.type}:${request}`;
|
|
217
217
|
const platformSpecificDefinitionId = `${this.type}:${request}:platform`;
|
|
218
218
|
const defaultRequired = ["name", "type", "request"];
|
|
@@ -226,22 +226,22 @@ let Debugger = class Debugger {
|
|
|
226
226
|
properties["type"] = {
|
|
227
227
|
enum: [this.type],
|
|
228
228
|
enumDescriptions: [this.label],
|
|
229
|
-
description: ( localize(
|
|
229
|
+
description: ( localize(14179, "Type of configuration.")),
|
|
230
230
|
pattern: "^(?!node2)",
|
|
231
231
|
deprecationMessage: this.debuggerContribution.deprecated || (this.enabled ? undefined : debuggerDisabledMessage(this.type)),
|
|
232
232
|
doNotSuggest: !!this.debuggerContribution.deprecated,
|
|
233
233
|
errorMessage: ( localize(
|
|
234
|
-
|
|
234
|
+
14180,
|
|
235
235
|
"The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled."
|
|
236
236
|
)),
|
|
237
237
|
patternErrorMessage: ( localize(
|
|
238
|
-
|
|
238
|
+
14181,
|
|
239
239
|
"\"node2\" is no longer supported, use \"node\" instead and set the \"protocol\" attribute to \"inspector\"."
|
|
240
240
|
))
|
|
241
241
|
};
|
|
242
242
|
properties["request"] = {
|
|
243
243
|
enum: [request],
|
|
244
|
-
description: ( localize(
|
|
244
|
+
description: ( localize(14182, "Request type of configuration. Can be \"launch\" or \"attach\"."))
|
|
245
245
|
};
|
|
246
246
|
for (const prop in definitions["common"].properties) {
|
|
247
247
|
properties[prop] = {
|
|
@@ -278,20 +278,20 @@ let Debugger = class Debugger {
|
|
|
278
278
|
...{
|
|
279
279
|
windows: {
|
|
280
280
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
281
|
-
description: ( localize(
|
|
281
|
+
description: ( localize(14183, "Windows specific launch configuration attributes."))
|
|
282
282
|
},
|
|
283
283
|
osx: {
|
|
284
284
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
285
|
-
description: ( localize(
|
|
285
|
+
description: ( localize(14184, "OS X specific launch configuration attributes."))
|
|
286
286
|
},
|
|
287
287
|
linux: {
|
|
288
288
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
289
|
-
description: ( localize(
|
|
289
|
+
description: ( localize(14185, "Linux specific launch configuration attributes."))
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
293
|
return attributesCopy;
|
|
294
|
-
})
|
|
294
|
+
});
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
297
|
Debugger = ( __decorate([( __param(3, IConfigurationService)), ( __param(4, ITextResourcePropertiesService)), ( __param(5, IConfigurationResolverService)), ( __param(6, IWorkbenchEnvironmentService)), ( __param(7, IDebugService)), ( __param(8, IContextKeyService)), ( __param(9, IProductService)), ( __param(10, ILogService))], Debugger));
|