@codingame/monaco-vscode-debug-service-override 26.2.2 → 28.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 +4 -6
- 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/debugHover.css +2 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css +2 -1
- 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
|
@@ -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(8438, "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(8439, "Unique identifier for this debug adapter.")),
|
|
35
35
|
type: "string"
|
|
36
36
|
},
|
|
37
37
|
label: {
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(8440, "Display name for this debug adapter.")),
|
|
39
39
|
type: "string"
|
|
40
40
|
},
|
|
41
41
|
program: {
|
|
42
42
|
description: ( localize(
|
|
43
|
-
|
|
43
|
+
8441,
|
|
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(8442, "Optional arguments to pass to the adapter.")),
|
|
50
50
|
type: "array"
|
|
51
51
|
},
|
|
52
52
|
runtime: {
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
8443,
|
|
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(8444, "Optional runtime arguments.")),
|
|
61
61
|
type: "array"
|
|
62
62
|
},
|
|
63
63
|
variables: {
|
|
64
64
|
description: ( localize(
|
|
65
|
-
|
|
65
|
+
8445,
|
|
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(8446, "Configurations for generating the initial 'launch.json'.")),
|
|
72
72
|
type: ["array", "string"]
|
|
73
73
|
},
|
|
74
74
|
languages: {
|
|
75
75
|
description: ( localize(
|
|
76
|
-
|
|
76
|
+
8447,
|
|
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(8448, "Snippets for adding new configurations in 'launch.json'.")),
|
|
83
83
|
type: "array"
|
|
84
84
|
},
|
|
85
85
|
configurationAttributes: {
|
|
86
|
-
description: ( localize(
|
|
86
|
+
description: ( localize(8449, "JSON schema configurations for validating 'launch.json'.")),
|
|
87
87
|
type: "object"
|
|
88
88
|
},
|
|
89
89
|
when: {
|
|
90
90
|
description: ( localize(
|
|
91
|
-
|
|
91
|
+
8450,
|
|
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
|
+
8451,
|
|
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(8452, "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(8453, "Windows specific settings.")),
|
|
112
112
|
type: "object",
|
|
113
113
|
properties: {
|
|
114
114
|
runtime: {
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(8454, "Runtime used for Windows.")),
|
|
116
116
|
type: "string"
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
osx: {
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(8455, "macOS specific settings.")),
|
|
122
122
|
type: "object",
|
|
123
123
|
properties: {
|
|
124
124
|
runtime: {
|
|
125
|
-
description: ( localize(
|
|
125
|
+
description: ( localize(8456, "Runtime used for macOS.")),
|
|
126
126
|
type: "string"
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
linux: {
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(8457, "Linux specific settings.")),
|
|
132
132
|
type: "object",
|
|
133
133
|
properties: {
|
|
134
134
|
runtime: {
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(8458, "Runtime used for Linux.")),
|
|
136
136
|
type: "string"
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
strings: {
|
|
141
|
-
description: ( localize(
|
|
141
|
+
description: ( localize(8459, "UI strings contributed by this debug adapter.")),
|
|
142
142
|
type: "object",
|
|
143
143
|
properties: {
|
|
144
144
|
unverifiedBreakpoints: {
|
|
145
145
|
description: ( localize(
|
|
146
|
-
|
|
146
|
+
8460,
|
|
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(8461, "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(8462, "Allow breakpoints for this language.")),
|
|
178
178
|
type: "string"
|
|
179
179
|
},
|
|
180
180
|
when: {
|
|
181
181
|
description: ( localize(
|
|
182
|
-
|
|
182
|
+
8463,
|
|
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
|
+
8464,
|
|
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
|
+
8465,
|
|
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
|
+
8466,
|
|
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
|
+
8467,
|
|
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(8468, "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(8469, "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
|
+
8470,
|
|
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
|
+
8471,
|
|
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
|
+
8472,
|
|
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(8473, "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
|
+
8472,
|
|
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(8474, "Name of folder in which the compound is located."))
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}]
|
|
306
306
|
},
|
|
307
307
|
description: ( localize(
|
|
308
|
-
|
|
308
|
+
8475,
|
|
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
|
+
8476,
|
|
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(8477, "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(8478, "Name")), ( localize(8479, "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(8480, "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;
|
|
@@ -98,7 +98,7 @@ let Debugger = class Debugger {
|
|
|
98
98
|
if (da) {
|
|
99
99
|
return Promise.resolve(da);
|
|
100
100
|
}
|
|
101
|
-
throw ( new Error(( localize(
|
|
101
|
+
throw ( new Error(( localize(8482, "Cannot find debug adapter for type '{0}'.", this.type))));
|
|
102
102
|
}
|
|
103
103
|
async substituteVariables(folder, config) {
|
|
104
104
|
const substitutedConfig = await this.adapterManager.substituteVariables(this.type, folder, config);
|
|
@@ -168,10 +168,10 @@ let Debugger = class Debugger {
|
|
|
168
168
|
path: "1"
|
|
169
169
|
}))) === "\r\n" ? "\r\n" : "\n";
|
|
170
170
|
const configs = ( JSON.stringify(initialConfigurations, null, "\t").split("\n").map(line => "\t" + line)).join(eol).trim();
|
|
171
|
-
const comment1 = ( localize(
|
|
172
|
-
const comment2 = ( localize(
|
|
171
|
+
const comment1 = ( localize(8483, "Use IntelliSense to learn about possible attributes."));
|
|
172
|
+
const comment2 = ( localize(8484, "Hover to view descriptions of existing attributes."));
|
|
173
173
|
const comment3 = ( localize(
|
|
174
|
-
|
|
174
|
+
8485,
|
|
175
175
|
"For more information, visit: {0}",
|
|
176
176
|
"https://go.microsoft.com/fwlink/?linkid=830387"
|
|
177
177
|
));
|
|
@@ -223,22 +223,22 @@ let Debugger = class Debugger {
|
|
|
223
223
|
properties["type"] = {
|
|
224
224
|
enum: [this.type],
|
|
225
225
|
enumDescriptions: [this.label],
|
|
226
|
-
description: ( localize(
|
|
226
|
+
description: ( localize(8486, "Type of configuration.")),
|
|
227
227
|
pattern: "^(?!node2)",
|
|
228
228
|
deprecationMessage: this.debuggerContribution.deprecated || (this.enabled ? undefined : debuggerDisabledMessage(this.type)),
|
|
229
229
|
doNotSuggest: !!this.debuggerContribution.deprecated,
|
|
230
230
|
errorMessage: ( localize(
|
|
231
|
-
|
|
231
|
+
8487,
|
|
232
232
|
"The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled."
|
|
233
233
|
)),
|
|
234
234
|
patternErrorMessage: ( localize(
|
|
235
|
-
|
|
235
|
+
8488,
|
|
236
236
|
"\"node2\" is no longer supported, use \"node\" instead and set the \"protocol\" attribute to \"inspector\"."
|
|
237
237
|
))
|
|
238
238
|
};
|
|
239
239
|
properties["request"] = {
|
|
240
240
|
enum: [request],
|
|
241
|
-
description: ( localize(
|
|
241
|
+
description: ( localize(8489, "Request type of configuration. Can be \"launch\" or \"attach\"."))
|
|
242
242
|
};
|
|
243
243
|
for (const prop in definitions["common"].properties) {
|
|
244
244
|
properties[prop] = {
|
|
@@ -264,15 +264,15 @@ let Debugger = class Debugger {
|
|
|
264
264
|
...{
|
|
265
265
|
windows: {
|
|
266
266
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
267
|
-
description: ( localize(
|
|
267
|
+
description: ( localize(8490, "Windows specific launch configuration attributes."))
|
|
268
268
|
},
|
|
269
269
|
osx: {
|
|
270
270
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
271
|
-
description: ( localize(
|
|
271
|
+
description: ( localize(8491, "OS X specific launch configuration attributes."))
|
|
272
272
|
},
|
|
273
273
|
linux: {
|
|
274
274
|
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
275
|
-
description: ( localize(
|
|
275
|
+
description: ( localize(8492, "Linux specific launch configuration attributes."))
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
};
|
|
@@ -8,7 +8,7 @@ import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
8
8
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
9
9
|
|
|
10
10
|
const COPY_NOTEBOOK_VARIABLE_VALUE_ID = "workbench.debug.viewlet.action.copyWorkspaceVariableValue";
|
|
11
|
-
const COPY_NOTEBOOK_VARIABLE_VALUE_LABEL = ( localize(
|
|
11
|
+
const COPY_NOTEBOOK_VARIABLE_VALUE_LABEL = ( localize(10739, "Copy Value"));
|
|
12
12
|
registerAction2(class extends Action2 {
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
@@ -28,7 +28,7 @@ registerAction2(class extends Action2 {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super({
|
|
30
30
|
id: "_executeNotebookVariableProvider",
|
|
31
|
-
title: ( localize(
|
|
31
|
+
title: ( localize(10740, "Execute Notebook Variable Provider")),
|
|
32
32
|
f1: false
|
|
33
33
|
});
|
|
34
34
|
}
|