@codingame/monaco-vscode-debug-service-override 4.5.1 → 4.5.2
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.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +105 -150
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +258 -529
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +28 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +44 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +84 -163
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +116 -120
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +7 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +78 -140
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +72 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +25 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +16 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +140 -132
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +218 -175
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +5 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +9 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +69 -110
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +68 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +77 -56
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +50 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +13 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +22 -51
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +47 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +60 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +14 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +23 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +17 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +56 -94
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +40 -79
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +55 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +14 -28
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +12 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +71 -146
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +92 -111
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +5 -12
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +42 -22
|
@@ -16,6 +16,7 @@ import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs
|
|
|
16
16
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
17
17
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
18
18
|
|
|
19
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/rawDebugSession";
|
|
19
20
|
let RawDebugSession = class RawDebugSession {
|
|
20
21
|
constructor(debugAdapter, dbgr, sessionId, name, extensionHostDebugService, openerService, notificationService, dialogSerivce) {
|
|
21
22
|
this.dbgr = dbgr;
|
|
@@ -33,23 +34,23 @@ let RawDebugSession = class RawDebugSession {
|
|
|
33
34
|
this.firedAdapterExitEvent = false;
|
|
34
35
|
this.startTime = 0;
|
|
35
36
|
this.didReceiveStoppedEvent = false;
|
|
36
|
-
this._onDidInitialize = ( new Emitter());
|
|
37
|
-
this._onDidStop = ( new Emitter());
|
|
38
|
-
this._onDidContinued = ( new Emitter());
|
|
39
|
-
this._onDidTerminateDebugee = ( new Emitter());
|
|
40
|
-
this._onDidExitDebugee = ( new Emitter());
|
|
41
|
-
this._onDidThread = ( new Emitter());
|
|
42
|
-
this._onDidOutput = ( new Emitter());
|
|
43
|
-
this._onDidBreakpoint = ( new Emitter());
|
|
44
|
-
this._onDidLoadedSource = ( new Emitter());
|
|
45
|
-
this._onDidProgressStart = ( new Emitter());
|
|
46
|
-
this._onDidProgressUpdate = ( new Emitter());
|
|
47
|
-
this._onDidProgressEnd = ( new Emitter());
|
|
48
|
-
this._onDidInvalidated = ( new Emitter());
|
|
49
|
-
this._onDidInvalidateMemory = ( new Emitter());
|
|
50
|
-
this._onDidCustomEvent = ( new Emitter());
|
|
51
|
-
this._onDidEvent = ( new Emitter());
|
|
52
|
-
this._onDidExitAdapter = ( new Emitter());
|
|
37
|
+
this._onDidInitialize = ( (new Emitter()));
|
|
38
|
+
this._onDidStop = ( (new Emitter()));
|
|
39
|
+
this._onDidContinued = ( (new Emitter()));
|
|
40
|
+
this._onDidTerminateDebugee = ( (new Emitter()));
|
|
41
|
+
this._onDidExitDebugee = ( (new Emitter()));
|
|
42
|
+
this._onDidThread = ( (new Emitter()));
|
|
43
|
+
this._onDidOutput = ( (new Emitter()));
|
|
44
|
+
this._onDidBreakpoint = ( (new Emitter()));
|
|
45
|
+
this._onDidLoadedSource = ( (new Emitter()));
|
|
46
|
+
this._onDidProgressStart = ( (new Emitter()));
|
|
47
|
+
this._onDidProgressUpdate = ( (new Emitter()));
|
|
48
|
+
this._onDidProgressEnd = ( (new Emitter()));
|
|
49
|
+
this._onDidInvalidated = ( (new Emitter()));
|
|
50
|
+
this._onDidInvalidateMemory = ( (new Emitter()));
|
|
51
|
+
this._onDidCustomEvent = ( (new Emitter()));
|
|
52
|
+
this._onDidEvent = ( (new Emitter()));
|
|
53
|
+
this._onDidExitAdapter = ( (new Emitter()));
|
|
53
54
|
this.stoppedSinceLastStep = false;
|
|
54
55
|
this.toDispose = [];
|
|
55
56
|
this.debugAdapter = debugAdapter;
|
|
@@ -59,7 +60,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
59
60
|
}));
|
|
60
61
|
this.toDispose.push(this.debugAdapter.onExit(code => {
|
|
61
62
|
if (code !== 0) {
|
|
62
|
-
this.shutdown(( new Error(`exit code: ${code}`)));
|
|
63
|
+
this.shutdown(( (new Error(`exit code: ${code}`))));
|
|
63
64
|
}
|
|
64
65
|
else {
|
|
65
66
|
this.shutdown();
|
|
@@ -193,14 +194,10 @@ let RawDebugSession = class RawDebugSession {
|
|
|
193
194
|
}
|
|
194
195
|
async start() {
|
|
195
196
|
if (!this.debugAdapter) {
|
|
196
|
-
return Promise.reject(( new Error(( localizeWithPath(
|
|
197
|
-
'vs/workbench/contrib/debug/browser/rawDebugSession',
|
|
198
|
-
'noDebugAdapterStart',
|
|
199
|
-
"No debug adapter, can not start debug session."
|
|
200
|
-
)))));
|
|
197
|
+
return Promise.reject(( (new Error(( localizeWithPath(_moduleId, 0, "No debug adapter, can not start debug session."))))));
|
|
201
198
|
}
|
|
202
199
|
await this.debugAdapter.startSession();
|
|
203
|
-
this.startTime = ( new Date()).getTime();
|
|
200
|
+
this.startTime = ( (new Date())).getTime();
|
|
204
201
|
}
|
|
205
202
|
async initialize(args) {
|
|
206
203
|
const response = await this.send('initialize', args, undefined, undefined, false);
|
|
@@ -229,13 +226,13 @@ let RawDebugSession = class RawDebugSession {
|
|
|
229
226
|
}
|
|
230
227
|
return this.disconnect({ terminateDebuggee: true, restart });
|
|
231
228
|
}
|
|
232
|
-
return Promise.reject(( new Error('terminated not supported')));
|
|
229
|
+
return Promise.reject(( (new Error('terminated not supported'))));
|
|
233
230
|
}
|
|
234
231
|
restart(args) {
|
|
235
232
|
if (this.capabilities.supportsRestartRequest) {
|
|
236
233
|
return this.send('restart', args);
|
|
237
234
|
}
|
|
238
|
-
return Promise.reject(( new Error('restart not supported')));
|
|
235
|
+
return Promise.reject(( (new Error('restart not supported'))));
|
|
239
236
|
}
|
|
240
237
|
async next(args) {
|
|
241
238
|
this.stoppedSinceLastStep = false;
|
|
@@ -279,19 +276,19 @@ let RawDebugSession = class RawDebugSession {
|
|
|
279
276
|
if (this.capabilities.supportsTerminateThreadsRequest) {
|
|
280
277
|
return this.send('terminateThreads', args);
|
|
281
278
|
}
|
|
282
|
-
return Promise.reject(( new Error('terminateThreads not supported')));
|
|
279
|
+
return Promise.reject(( (new Error('terminateThreads not supported'))));
|
|
283
280
|
}
|
|
284
281
|
setVariable(args) {
|
|
285
282
|
if (this.capabilities.supportsSetVariable) {
|
|
286
283
|
return this.send('setVariable', args);
|
|
287
284
|
}
|
|
288
|
-
return Promise.reject(( new Error('setVariable not supported')));
|
|
285
|
+
return Promise.reject(( (new Error('setVariable not supported'))));
|
|
289
286
|
}
|
|
290
287
|
setExpression(args) {
|
|
291
288
|
if (this.capabilities.supportsSetExpression) {
|
|
292
289
|
return this.send('setExpression', args);
|
|
293
290
|
}
|
|
294
|
-
return Promise.reject(( new Error('setExpression not supported')));
|
|
291
|
+
return Promise.reject(( (new Error('setExpression not supported'))));
|
|
295
292
|
}
|
|
296
293
|
async restartFrame(args, threadId) {
|
|
297
294
|
if (this.capabilities.supportsRestartFrame) {
|
|
@@ -302,19 +299,19 @@ let RawDebugSession = class RawDebugSession {
|
|
|
302
299
|
}
|
|
303
300
|
return response;
|
|
304
301
|
}
|
|
305
|
-
return Promise.reject(( new Error('restartFrame not supported')));
|
|
302
|
+
return Promise.reject(( (new Error('restartFrame not supported'))));
|
|
306
303
|
}
|
|
307
304
|
stepInTargets(args) {
|
|
308
305
|
if (this.capabilities.supportsStepInTargetsRequest) {
|
|
309
306
|
return this.send('stepInTargets', args);
|
|
310
307
|
}
|
|
311
|
-
return Promise.reject(( new Error('stepInTargets not supported')));
|
|
308
|
+
return Promise.reject(( (new Error('stepInTargets not supported'))));
|
|
312
309
|
}
|
|
313
310
|
completions(args, token) {
|
|
314
311
|
if (this.capabilities.supportsCompletionsRequest) {
|
|
315
312
|
return this.send('completions', args, token);
|
|
316
313
|
}
|
|
317
|
-
return Promise.reject(( new Error('completions not supported')));
|
|
314
|
+
return Promise.reject(( (new Error('completions not supported'))));
|
|
318
315
|
}
|
|
319
316
|
setBreakpoints(args) {
|
|
320
317
|
return this.send('setBreakpoints', args);
|
|
@@ -323,19 +320,19 @@ let RawDebugSession = class RawDebugSession {
|
|
|
323
320
|
if (this.capabilities.supportsFunctionBreakpoints) {
|
|
324
321
|
return this.send('setFunctionBreakpoints', args);
|
|
325
322
|
}
|
|
326
|
-
return Promise.reject(( new Error('setFunctionBreakpoints not supported')));
|
|
323
|
+
return Promise.reject(( (new Error('setFunctionBreakpoints not supported'))));
|
|
327
324
|
}
|
|
328
325
|
dataBreakpointInfo(args) {
|
|
329
326
|
if (this.capabilities.supportsDataBreakpoints) {
|
|
330
327
|
return this.send('dataBreakpointInfo', args);
|
|
331
328
|
}
|
|
332
|
-
return Promise.reject(( new Error('dataBreakpointInfo not supported')));
|
|
329
|
+
return Promise.reject(( (new Error('dataBreakpointInfo not supported'))));
|
|
333
330
|
}
|
|
334
331
|
setDataBreakpoints(args) {
|
|
335
332
|
if (this.capabilities.supportsDataBreakpoints) {
|
|
336
333
|
return this.send('setDataBreakpoints', args);
|
|
337
334
|
}
|
|
338
|
-
return Promise.reject(( new Error('setDataBreakpoints not supported')));
|
|
335
|
+
return Promise.reject(( (new Error('setDataBreakpoints not supported'))));
|
|
339
336
|
}
|
|
340
337
|
setExceptionBreakpoints(args) {
|
|
341
338
|
return this.send('setExceptionBreakpoints', args);
|
|
@@ -344,13 +341,13 @@ let RawDebugSession = class RawDebugSession {
|
|
|
344
341
|
if (this.capabilities.supportsBreakpointLocationsRequest) {
|
|
345
342
|
return this.send('breakpointLocations', args);
|
|
346
343
|
}
|
|
347
|
-
return Promise.reject(( new Error('breakpointLocations is not supported')));
|
|
344
|
+
return Promise.reject(( (new Error('breakpointLocations is not supported'))));
|
|
348
345
|
}
|
|
349
346
|
configurationDone() {
|
|
350
347
|
if (this.capabilities.supportsConfigurationDoneRequest) {
|
|
351
348
|
return this.send('configurationDone', null);
|
|
352
349
|
}
|
|
353
|
-
return Promise.reject(( new Error('configurationDone not supported')));
|
|
350
|
+
return Promise.reject(( (new Error('configurationDone not supported'))));
|
|
354
351
|
}
|
|
355
352
|
stackTrace(args, token) {
|
|
356
353
|
return this.send('stackTrace', args, token);
|
|
@@ -359,7 +356,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
359
356
|
if (this.capabilities.supportsExceptionInfoRequest) {
|
|
360
357
|
return this.send('exceptionInfo', args);
|
|
361
358
|
}
|
|
362
|
-
return Promise.reject(( new Error('exceptionInfo not supported')));
|
|
359
|
+
return Promise.reject(( (new Error('exceptionInfo not supported'))));
|
|
363
360
|
}
|
|
364
361
|
scopes(args, token) {
|
|
365
362
|
return this.send('scopes', args, token);
|
|
@@ -374,7 +371,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
374
371
|
if (this.capabilities.supportsLoadedSourcesRequest) {
|
|
375
372
|
return this.send('loadedSources', args);
|
|
376
373
|
}
|
|
377
|
-
return Promise.reject(( new Error('loadedSources not supported')));
|
|
374
|
+
return Promise.reject(( (new Error('loadedSources not supported'))));
|
|
378
375
|
}
|
|
379
376
|
threads() {
|
|
380
377
|
return this.send('threads', null);
|
|
@@ -391,7 +388,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
391
388
|
}
|
|
392
389
|
return response;
|
|
393
390
|
}
|
|
394
|
-
return Promise.reject(( new Error('stepBack not supported')));
|
|
391
|
+
return Promise.reject(( (new Error('stepBack not supported'))));
|
|
395
392
|
}
|
|
396
393
|
async reverseContinue(args) {
|
|
397
394
|
if (this.capabilities.supportsStepBack) {
|
|
@@ -402,13 +399,13 @@ let RawDebugSession = class RawDebugSession {
|
|
|
402
399
|
}
|
|
403
400
|
return response;
|
|
404
401
|
}
|
|
405
|
-
return Promise.reject(( new Error('reverseContinue not supported')));
|
|
402
|
+
return Promise.reject(( (new Error('reverseContinue not supported'))));
|
|
406
403
|
}
|
|
407
404
|
gotoTargets(args) {
|
|
408
405
|
if (this.capabilities.supportsGotoTargetsRequest) {
|
|
409
406
|
return this.send('gotoTargets', args);
|
|
410
407
|
}
|
|
411
|
-
return Promise.reject(( new Error('gotoTargets is not supported')));
|
|
408
|
+
return Promise.reject(( (new Error('gotoTargets is not supported'))));
|
|
412
409
|
}
|
|
413
410
|
async goto(args) {
|
|
414
411
|
if (this.capabilities.supportsGotoTargetsRequest) {
|
|
@@ -419,31 +416,31 @@ let RawDebugSession = class RawDebugSession {
|
|
|
419
416
|
}
|
|
420
417
|
return response;
|
|
421
418
|
}
|
|
422
|
-
return Promise.reject(( new Error('goto is not supported')));
|
|
419
|
+
return Promise.reject(( (new Error('goto is not supported'))));
|
|
423
420
|
}
|
|
424
421
|
async setInstructionBreakpoints(args) {
|
|
425
422
|
if (this.capabilities.supportsInstructionBreakpoints) {
|
|
426
423
|
return await this.send('setInstructionBreakpoints', args);
|
|
427
424
|
}
|
|
428
|
-
return Promise.reject(( new Error('setInstructionBreakpoints is not supported')));
|
|
425
|
+
return Promise.reject(( (new Error('setInstructionBreakpoints is not supported'))));
|
|
429
426
|
}
|
|
430
427
|
async disassemble(args) {
|
|
431
428
|
if (this.capabilities.supportsDisassembleRequest) {
|
|
432
429
|
return await this.send('disassemble', args);
|
|
433
430
|
}
|
|
434
|
-
return Promise.reject(( new Error('disassemble is not supported')));
|
|
431
|
+
return Promise.reject(( (new Error('disassemble is not supported'))));
|
|
435
432
|
}
|
|
436
433
|
async readMemory(args) {
|
|
437
434
|
if (this.capabilities.supportsReadMemoryRequest) {
|
|
438
435
|
return await this.send('readMemory', args);
|
|
439
436
|
}
|
|
440
|
-
return Promise.reject(( new Error('readMemory is not supported')));
|
|
437
|
+
return Promise.reject(( (new Error('readMemory is not supported'))));
|
|
441
438
|
}
|
|
442
439
|
async writeMemory(args) {
|
|
443
440
|
if (this.capabilities.supportsWriteMemoryRequest) {
|
|
444
441
|
return await this.send('writeMemory', args);
|
|
445
442
|
}
|
|
446
|
-
return Promise.reject(( new Error('writeMemory is not supported')));
|
|
443
|
+
return Promise.reject(( (new Error('writeMemory is not supported'))));
|
|
447
444
|
}
|
|
448
445
|
cancel(args) {
|
|
449
446
|
return this.send('cancel', args);
|
|
@@ -494,7 +491,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
494
491
|
this.firedAdapterExitEvent = true;
|
|
495
492
|
const e = {
|
|
496
493
|
emittedStopped: this.didReceiveStoppedEvent,
|
|
497
|
-
sessionLengthInSeconds: (( new Date()).getTime() - this.startTime) / 1000
|
|
494
|
+
sessionLengthInSeconds: (( (new Date())).getTime() - this.startTime) / 1000
|
|
498
495
|
};
|
|
499
496
|
if (error && !this.debugAdapterStopped) {
|
|
500
497
|
e.error = error;
|
|
@@ -518,15 +515,11 @@ let RawDebugSession = class RawDebugSession {
|
|
|
518
515
|
const { confirmed } = await this.dialogSerivce.confirm({
|
|
519
516
|
type: Severity$1.Warning,
|
|
520
517
|
message: ( localizeWithPath(
|
|
521
|
-
|
|
522
|
-
|
|
518
|
+
_moduleId,
|
|
519
|
+
1,
|
|
523
520
|
"The debugger needs to open a new tab or window for the debuggee but the browser prevented this. You must give permission to continue."
|
|
524
521
|
)),
|
|
525
|
-
primaryButton: ( localizeWithPath(
|
|
526
|
-
'vs/workbench/contrib/debug/browser/rawDebugSession',
|
|
527
|
-
{ key: 'continue', comment: ['&& denotes a mnemonic'] },
|
|
528
|
-
"&&Continue"
|
|
529
|
-
))
|
|
522
|
+
primaryButton: ( localizeWithPath(_moduleId, 2, "&&Continue"))
|
|
530
523
|
});
|
|
531
524
|
if (confirmed) {
|
|
532
525
|
result = await this.launchVsCode(request.arguments);
|
|
@@ -606,7 +599,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
606
599
|
const key = match[1];
|
|
607
600
|
let value = match[2];
|
|
608
601
|
if ((key === 'file-uri' || key === 'folder-uri') && !isUri(arg.path)) {
|
|
609
|
-
value = isUri(value) ? value : ( URI.file(value).toString());
|
|
602
|
+
value = isUri(value) ? value : ( (URI.file(value).toString()));
|
|
610
603
|
}
|
|
611
604
|
args.push(`--${key}=${value}`);
|
|
612
605
|
}
|
|
@@ -620,18 +613,13 @@ let RawDebugSession = class RawDebugSession {
|
|
|
620
613
|
return this.extensionHostDebugService.openExtensionDevelopmentHostWindow(args, !!vscodeArgs.debugRenderer);
|
|
621
614
|
}
|
|
622
615
|
send(command, args, token, timeout, showErrors = true) {
|
|
623
|
-
return ( new Promise((completeDispatch, errorDispatch) => {
|
|
616
|
+
return ( (new Promise((completeDispatch, errorDispatch) => {
|
|
624
617
|
if (!this.debugAdapter) {
|
|
625
618
|
if (this.inShutdown) {
|
|
626
619
|
completeDispatch(undefined);
|
|
627
620
|
}
|
|
628
621
|
else {
|
|
629
|
-
errorDispatch(( new Error(( localizeWithPath(
|
|
630
|
-
'vs/workbench/contrib/debug/browser/rawDebugSession',
|
|
631
|
-
'noDebugAdapter',
|
|
632
|
-
"No debugger available found. Can not send '{0}'.",
|
|
633
|
-
command
|
|
634
|
-
)))));
|
|
622
|
+
errorDispatch(( (new Error(( localizeWithPath(_moduleId, 3, "No debugger available found. Can not send '{0}'.", command))))));
|
|
635
623
|
}
|
|
636
624
|
return;
|
|
637
625
|
}
|
|
@@ -653,7 +641,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
653
641
|
}
|
|
654
642
|
});
|
|
655
643
|
}
|
|
656
|
-
})).then(undefined, err => Promise.reject(this.handleErrorResponse(err, showErrors)));
|
|
644
|
+
}))).then(undefined, err => Promise.reject(this.handleErrorResponse(err, showErrors)));
|
|
657
645
|
}
|
|
658
646
|
handleErrorResponse(errorResponse, showErrors) {
|
|
659
647
|
if (errorResponse.command === 'canceled' && errorResponse.message === 'canceled') {
|
|
@@ -664,12 +652,8 @@ let RawDebugSession = class RawDebugSession {
|
|
|
664
652
|
const userMessage = error ? formatPII(error.format, false, error.variables) : errorMessage;
|
|
665
653
|
const url = error?.url;
|
|
666
654
|
if (error && url) {
|
|
667
|
-
const label = error.urlLabel ? error.urlLabel : ( localizeWithPath(
|
|
668
|
-
|
|
669
|
-
'moreInfo',
|
|
670
|
-
"More Info"
|
|
671
|
-
));
|
|
672
|
-
const uri = ( URI.parse(url));
|
|
655
|
+
const label = error.urlLabel ? error.urlLabel : ( localizeWithPath(_moduleId, 4, "More Info"));
|
|
656
|
+
const uri = ( (URI.parse(url)));
|
|
673
657
|
const actionId = uri.scheme === Schemas.command ? 'debug.moreInfo.command' : 'debug.moreInfo';
|
|
674
658
|
return createErrorWithActions(userMessage, [toAction({ id: actionId, label, run: () => this.openerService.open(uri, { allowCommands: true }) })]);
|
|
675
659
|
}
|
|
@@ -700,11 +684,11 @@ let RawDebugSession = class RawDebugSession {
|
|
|
700
684
|
dispose(this.toDispose);
|
|
701
685
|
}
|
|
702
686
|
};
|
|
703
|
-
RawDebugSession = ( __decorate([
|
|
704
|
-
( __param(4, IExtensionHostDebugService)),
|
|
705
|
-
( __param(5, IOpenerService)),
|
|
706
|
-
( __param(6, INotificationService)),
|
|
707
|
-
( __param(7, IDialogService))
|
|
708
|
-
], RawDebugSession));
|
|
687
|
+
RawDebugSession = ( (__decorate([
|
|
688
|
+
( (__param(4, IExtensionHostDebugService))),
|
|
689
|
+
( (__param(5, IOpenerService))),
|
|
690
|
+
( (__param(6, INotificationService))),
|
|
691
|
+
( (__param(7, IDialogService)))
|
|
692
|
+
], RawDebugSession)));
|
|
709
693
|
|
|
710
694
|
export { RawDebugSession };
|
|
@@ -72,6 +72,7 @@ import { AccessibilitySignal } from 'vscode/vscode/vs/platform/accessibilitySign
|
|
|
72
72
|
import { IAccessibilitySignalService } from 'vscode/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service';
|
|
73
73
|
|
|
74
74
|
var Repl_1, ReplOptions_1;
|
|
75
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/repl";
|
|
75
76
|
const $ = $$1;
|
|
76
77
|
const HISTORY_STORAGE_KEY = 'debug.repl.history';
|
|
77
78
|
const FILTER_HISTORY_STORAGE_KEY = 'debug.repl.filterHistory';
|
|
@@ -91,11 +92,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
91
92
|
super({
|
|
92
93
|
...options,
|
|
93
94
|
filterOptions: {
|
|
94
|
-
placeholder: (
|
|
95
|
-
'vs/workbench/contrib/debug/browser/repl',
|
|
96
|
-
{ key: 'workbench.debug.filter.placeholder', comment: ['Text in the brackets after e.g. is not localizable'] },
|
|
97
|
-
"Filter (e.g. text, !exclude)"
|
|
98
|
-
))),
|
|
95
|
+
placeholder: ( localizeWithPath(_moduleId, 0, "Filter (e.g. text, !exclude)")),
|
|
99
96
|
text: filterText,
|
|
100
97
|
history: JSON.parse(storageService.get(FILTER_HISTORY_STORAGE_KEY, 1 , '[]')),
|
|
101
98
|
}
|
|
@@ -475,13 +472,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
475
472
|
await autoExpandElements(session.getReplElements());
|
|
476
473
|
}
|
|
477
474
|
const { total, filtered } = this.getFilterStats();
|
|
478
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : (
|
|
479
|
-
'vs/workbench/contrib/debug/browser/repl',
|
|
480
|
-
'showing filtered repl lines',
|
|
481
|
-
"Showing {0} of {1}",
|
|
482
|
-
filtered,
|
|
483
|
-
total
|
|
484
|
-
))));
|
|
475
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localizeWithPath(_moduleId, 1, "Showing {0} of {1}", filtered, total)));
|
|
485
476
|
}, Repl_1.REFRESH_DELAY))
|
|
486
477
|
);
|
|
487
478
|
}
|
|
@@ -583,7 +574,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
583
574
|
options.suggest = { showStatusBar: true };
|
|
584
575
|
const config = this.configurationService.getValue('debug');
|
|
585
576
|
options.acceptSuggestionOnEnter = config.console.acceptSuggestionOnEnter === 'on' ? 'on' : 'off';
|
|
586
|
-
options.ariaLabel = (
|
|
577
|
+
options.ariaLabel = ( localizeWithPath(_moduleId, 2, "Debug Console"));
|
|
587
578
|
this.replInput = this.scopedInstantiationService.createInstance(CodeEditorWidget, this.replInputContainer, options, getSimpleCodeEditorWidgetOptions());
|
|
588
579
|
this._register(this.replInput.onDidChangeModelContent(() => {
|
|
589
580
|
const model = this.replInput.getModel();
|
|
@@ -634,11 +625,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
634
625
|
},
|
|
635
626
|
renderOptions: {
|
|
636
627
|
after: {
|
|
637
|
-
contentText: (
|
|
638
|
-
'vs/workbench/contrib/debug/browser/repl',
|
|
639
|
-
'startDebugFirst',
|
|
640
|
-
"Please start a debug session to evaluate expressions"
|
|
641
|
-
))),
|
|
628
|
+
contentText: ( localizeWithPath(_moduleId, 3, "Please start a debug session to evaluate expressions")),
|
|
642
629
|
color: transparentForeground ? ( (transparentForeground.toString())) : undefined
|
|
643
630
|
}
|
|
644
631
|
}
|
|
@@ -750,11 +737,7 @@ class AcceptReplInputAction extends EditorAction {
|
|
|
750
737
|
constructor() {
|
|
751
738
|
super({
|
|
752
739
|
id: 'repl.action.acceptInput',
|
|
753
|
-
label: (
|
|
754
|
-
'vs/workbench/contrib/debug/browser/repl',
|
|
755
|
-
{ key: 'actions.repl.acceptInput', comment: ['Apply input from the debug console input box'] },
|
|
756
|
-
"REPL Accept Input"
|
|
757
|
-
))),
|
|
740
|
+
label: ( localizeWithPath(_moduleId, 4, "REPL Accept Input")),
|
|
758
741
|
alias: 'REPL Accept Input',
|
|
759
742
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
760
743
|
kbOpts: {
|
|
@@ -774,11 +757,7 @@ class FilterReplAction extends EditorAction {
|
|
|
774
757
|
constructor() {
|
|
775
758
|
super({
|
|
776
759
|
id: 'repl.action.filter',
|
|
777
|
-
label: (
|
|
778
|
-
'vs/workbench/contrib/debug/browser/repl',
|
|
779
|
-
'repl.action.filter',
|
|
780
|
-
"REPL Focus Content to Filter"
|
|
781
|
-
))),
|
|
760
|
+
label: ( localizeWithPath(_moduleId, 5, "REPL Focus Content to Filter")),
|
|
782
761
|
alias: 'REPL Filter',
|
|
783
762
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
784
763
|
kbOpts: {
|
|
@@ -797,11 +776,7 @@ class ReplCopyAllAction extends EditorAction {
|
|
|
797
776
|
constructor() {
|
|
798
777
|
super({
|
|
799
778
|
id: 'repl.action.copyAll',
|
|
800
|
-
label: (
|
|
801
|
-
'vs/workbench/contrib/debug/browser/repl',
|
|
802
|
-
'actions.repl.copyAll',
|
|
803
|
-
"Debug: Console Copy All"
|
|
804
|
-
))),
|
|
779
|
+
label: ( localizeWithPath(_moduleId, 6, "Debug: Console Copy All")),
|
|
805
780
|
alias: 'Debug Console Copy All',
|
|
806
781
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
807
782
|
});
|
|
@@ -837,11 +812,7 @@ registerAction2(class extends ViewAction {
|
|
|
837
812
|
super({
|
|
838
813
|
id: selectReplCommandId,
|
|
839
814
|
viewId: REPL_VIEW_ID,
|
|
840
|
-
title: (
|
|
841
|
-
'vs/workbench/contrib/debug/browser/repl',
|
|
842
|
-
'selectRepl',
|
|
843
|
-
"Select Debug Console"
|
|
844
|
-
))),
|
|
815
|
+
title: ( localizeWithPath(_moduleId, 7, "Select Debug Console")),
|
|
845
816
|
f1: false,
|
|
846
817
|
menu: {
|
|
847
818
|
id: MenuId.ViewTitle,
|
|
@@ -873,7 +844,7 @@ registerAction2(class extends ViewAction {
|
|
|
873
844
|
super({
|
|
874
845
|
id: 'workbench.debug.panel.action.clearReplAction',
|
|
875
846
|
viewId: REPL_VIEW_ID,
|
|
876
|
-
title: (
|
|
847
|
+
title: ( localize2WithPath(_moduleId, 8, 'Clear Console')),
|
|
877
848
|
f1: true,
|
|
878
849
|
icon: debugConsoleClearAll,
|
|
879
850
|
menu: [{
|
|
@@ -898,7 +869,7 @@ registerAction2(class extends ViewAction {
|
|
|
898
869
|
constructor() {
|
|
899
870
|
super({
|
|
900
871
|
id: 'debug.collapseRepl',
|
|
901
|
-
title: (
|
|
872
|
+
title: ( localizeWithPath(_moduleId, 9, "Collapse All")),
|
|
902
873
|
viewId: REPL_VIEW_ID,
|
|
903
874
|
menu: {
|
|
904
875
|
id: MenuId.DebugConsoleContext,
|
|
@@ -916,7 +887,7 @@ registerAction2(class extends ViewAction {
|
|
|
916
887
|
constructor() {
|
|
917
888
|
super({
|
|
918
889
|
id: 'debug.replPaste',
|
|
919
|
-
title: (
|
|
890
|
+
title: ( localizeWithPath(_moduleId, 10, "Paste")),
|
|
920
891
|
viewId: REPL_VIEW_ID,
|
|
921
892
|
precondition: ( (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(0 )))),
|
|
922
893
|
menu: {
|
|
@@ -946,7 +917,7 @@ registerAction2(class extends ViewAction {
|
|
|
946
917
|
constructor() {
|
|
947
918
|
super({
|
|
948
919
|
id: 'workbench.debug.action.copyAll',
|
|
949
|
-
title: (
|
|
920
|
+
title: ( localizeWithPath(_moduleId, 11, "Copy All")),
|
|
950
921
|
viewId: REPL_VIEW_ID,
|
|
951
922
|
menu: {
|
|
952
923
|
id: MenuId.DebugConsoleContext,
|
|
@@ -964,7 +935,7 @@ registerAction2(class extends Action2 {
|
|
|
964
935
|
constructor() {
|
|
965
936
|
super({
|
|
966
937
|
id: 'debug.replCopy',
|
|
967
|
-
title: (
|
|
938
|
+
title: ( localizeWithPath(_moduleId, 12, "Copy")),
|
|
968
939
|
menu: {
|
|
969
940
|
id: MenuId.DebugConsoleContext,
|
|
970
941
|
group: '2_cutcopypaste',
|
|
@@ -24,6 +24,7 @@ import { setupCustomHover } from 'vscode/vscode/vs/base/browser/ui/hover/updatab
|
|
|
24
24
|
import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
25
25
|
|
|
26
26
|
var ReplGroupRenderer_1, ReplOutputElementRenderer_1, ReplVariablesRenderer_1;
|
|
27
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/replViewer";
|
|
27
28
|
const $ = $$1;
|
|
28
29
|
class ReplEvaluationInputsRenderer {
|
|
29
30
|
static { this.ID = 'replEvaluationInput'; }
|
|
@@ -33,7 +34,7 @@ class ReplEvaluationInputsRenderer {
|
|
|
33
34
|
renderTemplate(container) {
|
|
34
35
|
append(container, $('span.arrow' + ThemeIcon.asCSSSelector(debugConsoleEvaluationInput)));
|
|
35
36
|
const input = append(container, $('.expression'));
|
|
36
|
-
const label = ( new HighlightedLabel(input));
|
|
37
|
+
const label = ( (new HighlightedLabel(input)));
|
|
37
38
|
return { label };
|
|
38
39
|
}
|
|
39
40
|
renderElement(element, index, templateData) {
|
|
@@ -67,9 +68,9 @@ let ReplGroupRenderer = class ReplGroupRenderer {
|
|
|
67
68
|
disposeTemplate(_templateData) {
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
|
-
ReplGroupRenderer = ReplGroupRenderer_1 = ( __decorate([
|
|
71
|
-
( __param(1, IThemeService))
|
|
72
|
-
], ReplGroupRenderer));
|
|
71
|
+
ReplGroupRenderer = ReplGroupRenderer_1 = ( (__decorate([
|
|
72
|
+
( (__param(1, IThemeService)))
|
|
73
|
+
], ReplGroupRenderer)));
|
|
73
74
|
class ReplEvaluationResultsRenderer {
|
|
74
75
|
static { this.ID = 'replEvaluationResult'; }
|
|
75
76
|
get templateId() {
|
|
@@ -112,7 +113,7 @@ let ReplOutputElementRenderer = class ReplOutputElementRenderer {
|
|
|
112
113
|
const expression = append(container, $('.output.expression.value-and-source'));
|
|
113
114
|
data.container = container;
|
|
114
115
|
data.countContainer = append(expression, $('.count-badge-wrapper'));
|
|
115
|
-
data.count = ( new CountBadge(data.countContainer, {}, defaultCountBadgeStyles));
|
|
116
|
+
data.count = ( (new CountBadge(data.countContainer, {}, defaultCountBadgeStyles)));
|
|
116
117
|
data.value = append(expression, $('span.value'));
|
|
117
118
|
data.source = append(expression, $('.source'));
|
|
118
119
|
data.toDispose = [];
|
|
@@ -158,11 +159,11 @@ let ReplOutputElementRenderer = class ReplOutputElementRenderer {
|
|
|
158
159
|
templateData.elementListener.dispose();
|
|
159
160
|
}
|
|
160
161
|
};
|
|
161
|
-
ReplOutputElementRenderer = ReplOutputElementRenderer_1 = ( __decorate([
|
|
162
|
-
( __param(1, IEditorService)),
|
|
163
|
-
( __param(2, ILabelService)),
|
|
164
|
-
( __param(3, IThemeService))
|
|
165
|
-
], ReplOutputElementRenderer));
|
|
162
|
+
ReplOutputElementRenderer = ReplOutputElementRenderer_1 = ( (__decorate([
|
|
163
|
+
( (__param(1, IEditorService))),
|
|
164
|
+
( (__param(2, ILabelService))),
|
|
165
|
+
( (__param(3, IThemeService)))
|
|
166
|
+
], ReplOutputElementRenderer)));
|
|
166
167
|
let ReplVariablesRenderer = class ReplVariablesRenderer extends AbstractExpressionsRenderer {
|
|
167
168
|
static { ReplVariablesRenderer_1 = this; }
|
|
168
169
|
static { this.ID = 'replVariable'; }
|
|
@@ -193,10 +194,10 @@ let ReplVariablesRenderer = class ReplVariablesRenderer extends AbstractExpressi
|
|
|
193
194
|
return undefined;
|
|
194
195
|
}
|
|
195
196
|
};
|
|
196
|
-
ReplVariablesRenderer = ReplVariablesRenderer_1 = ( __decorate([
|
|
197
|
-
( __param(1, IDebugService)),
|
|
198
|
-
( __param(2, IContextViewService))
|
|
199
|
-
], ReplVariablesRenderer));
|
|
197
|
+
ReplVariablesRenderer = ReplVariablesRenderer_1 = ( (__decorate([
|
|
198
|
+
( (__param(1, IDebugService))),
|
|
199
|
+
( (__param(2, IContextViewService)))
|
|
200
|
+
], ReplVariablesRenderer)));
|
|
200
201
|
class ReplRawObjectsRenderer {
|
|
201
202
|
static { this.ID = 'rawObject'; }
|
|
202
203
|
constructor(linkDetector) {
|
|
@@ -209,7 +210,7 @@ class ReplRawObjectsRenderer {
|
|
|
209
210
|
container.classList.add('output');
|
|
210
211
|
const expression = append(container, $('.output.expression'));
|
|
211
212
|
const name = append(expression, $('span.name'));
|
|
212
|
-
const label = ( new HighlightedLabel(name));
|
|
213
|
+
const label = ( (new HighlightedLabel(name)));
|
|
213
214
|
const value = append(expression, $('span.value'));
|
|
214
215
|
return { container, expression, name, label, value };
|
|
215
216
|
}
|
|
@@ -282,7 +283,7 @@ class ReplDelegate extends CachedListVirtualDelegate {
|
|
|
282
283
|
if (isNestedVariable(element)) {
|
|
283
284
|
return false;
|
|
284
285
|
}
|
|
285
|
-
return ( element.toString()).length > 0;
|
|
286
|
+
return ( (element.toString())).length > 0;
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
289
|
function isDebugSession(obj) {
|
|
@@ -304,46 +305,26 @@ class ReplDataSource {
|
|
|
304
305
|
}
|
|
305
306
|
class ReplAccessibilityProvider {
|
|
306
307
|
getWidgetAriaLabel() {
|
|
307
|
-
return ( localizeWithPath(
|
|
308
|
-
'vs/workbench/contrib/debug/browser/replViewer',
|
|
309
|
-
'debugConsole',
|
|
310
|
-
"Debug Console"
|
|
311
|
-
));
|
|
308
|
+
return ( localizeWithPath(_moduleId, 0, "Debug Console"));
|
|
312
309
|
}
|
|
313
310
|
getAriaLabel(element) {
|
|
314
311
|
if (element instanceof Variable) {
|
|
315
|
-
return ( localizeWithPath(
|
|
316
|
-
'vs/workbench/contrib/debug/browser/replViewer',
|
|
317
|
-
'replVariableAriaLabel',
|
|
318
|
-
"Variable {0}, value {1}",
|
|
319
|
-
element.name,
|
|
320
|
-
element.value
|
|
321
|
-
));
|
|
312
|
+
return ( localizeWithPath(_moduleId, 1, "Variable {0}, value {1}", element.name, element.value));
|
|
322
313
|
}
|
|
323
314
|
if (element instanceof ReplOutputElement || element instanceof ReplEvaluationInput || element instanceof ReplEvaluationResult) {
|
|
324
|
-
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localizeWithPath(
|
|
325
|
-
'vs/workbench/contrib/debug/browser/replViewer',
|
|
326
|
-
{ key: 'occurred', comment: ['Front will the value of the debug console element. Placeholder will be replaced by a number which represents occurrance count.'] },
|
|
327
|
-
", occurred {0} times",
|
|
328
|
-
element.count
|
|
329
|
-
)) : '');
|
|
315
|
+
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localizeWithPath(_moduleId, 2, ", occurred {0} times", element.count)) : '');
|
|
330
316
|
}
|
|
331
317
|
if (element instanceof RawObjectReplElement) {
|
|
332
318
|
return ( localizeWithPath(
|
|
333
|
-
|
|
334
|
-
|
|
319
|
+
_moduleId,
|
|
320
|
+
3,
|
|
335
321
|
"Debug console variable {0}, value {1}",
|
|
336
322
|
element.name,
|
|
337
323
|
element.value
|
|
338
324
|
));
|
|
339
325
|
}
|
|
340
326
|
if (element instanceof ReplGroup) {
|
|
341
|
-
return ( localizeWithPath(
|
|
342
|
-
'vs/workbench/contrib/debug/browser/replViewer',
|
|
343
|
-
'replGroup',
|
|
344
|
-
"Debug console group {0}",
|
|
345
|
-
element.name
|
|
346
|
-
));
|
|
327
|
+
return ( localizeWithPath(_moduleId, 4, "Debug console group {0}", element.name));
|
|
347
328
|
}
|
|
348
329
|
return '';
|
|
349
330
|
}
|