@codingame/monaco-vscode-debug-service-override 7.1.0 → 8.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/workbench/contrib/debug/browser/callStackView.js +21 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +155 -174
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +32 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +16 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +5 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +38 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +69 -129
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +19 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +20 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +6 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +7 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +5 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +8 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +52 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +104 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +122 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +128 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +8 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +25 -32
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +13 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +47 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +6 -9
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +63 -98
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +15 -25
- package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +33 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +3 -4
|
@@ -13,7 +13,7 @@ import { basenameOrAuthority } from 'vscode/vscode/vs/base/common/resources';
|
|
|
13
13
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
14
14
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
15
15
|
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
16
|
-
import {
|
|
16
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
17
17
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
18
18
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
19
19
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
@@ -40,11 +40,11 @@ import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
|
40
40
|
import { isDefined } from 'vscode/vscode/vs/base/common/types';
|
|
41
41
|
import { ITestService } from 'vscode/vscode/vs/workbench/contrib/testing/common/testService.service';
|
|
42
42
|
import { ITestResultService } from 'vscode/vscode/vs/workbench/contrib/testing/common/testResultService.service';
|
|
43
|
+
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
43
44
|
|
|
44
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugSession";
|
|
45
45
|
const TRIGGERED_BREAKPOINT_MAX_DELAY = 1500;
|
|
46
46
|
let DebugSession = class DebugSession {
|
|
47
|
-
constructor(id, _configuration, root, model, options, debugService, telemetryService, hostService, configurationService, paneCompositeService, workspaceContextService, productService, notificationService, lifecycleService, uriIdentityService, instantiationService, customEndpointTelemetryService, workbenchEnvironmentService, logService, testService, testResultService) {
|
|
47
|
+
constructor(id, _configuration, root, model, options, debugService, telemetryService, hostService, configurationService, paneCompositeService, workspaceContextService, productService, notificationService, lifecycleService, uriIdentityService, instantiationService, customEndpointTelemetryService, workbenchEnvironmentService, logService, testService, testResultService, accessibilityService) {
|
|
48
48
|
this.id = id;
|
|
49
49
|
this._configuration = _configuration;
|
|
50
50
|
this.root = root;
|
|
@@ -63,6 +63,7 @@ let DebugSession = class DebugSession {
|
|
|
63
63
|
this.workbenchEnvironmentService = workbenchEnvironmentService;
|
|
64
64
|
this.logService = logService;
|
|
65
65
|
this.testService = testService;
|
|
66
|
+
this.accessibilityService = accessibilityService;
|
|
66
67
|
this.initialized = false;
|
|
67
68
|
this.sources = ( (new Map()));
|
|
68
69
|
this.threads = ( (new Map()));
|
|
@@ -92,7 +93,7 @@ let DebugSession = class DebugSession {
|
|
|
92
93
|
}
|
|
93
94
|
const toDispose = this.globalDisposables;
|
|
94
95
|
const replListener = toDispose.add(( (new MutableDisposable())));
|
|
95
|
-
replListener.value = this.repl.onDidChangeElements(() => this._onDidChangeREPLElements.fire());
|
|
96
|
+
replListener.value = this.repl.onDidChangeElements((e) => this._onDidChangeREPLElements.fire(e));
|
|
96
97
|
if (lifecycleService) {
|
|
97
98
|
toDispose.add(lifecycleService.onWillShutdown(() => {
|
|
98
99
|
this.shutdown();
|
|
@@ -132,7 +133,7 @@ let DebugSession = class DebugSession {
|
|
|
132
133
|
toDispose.add(parent.onDidEndAdapter(() => {
|
|
133
134
|
if (!this.hasSeparateRepl() && this.raw?.isInShutdown === false) {
|
|
134
135
|
this.repl = this.repl.clone();
|
|
135
|
-
replListener.value = this.repl.onDidChangeElements(() => this._onDidChangeREPLElements.fire());
|
|
136
|
+
replListener.value = this.repl.onDidChangeElements((e) => this._onDidChangeREPLElements.fire(e));
|
|
136
137
|
this.parentSession = undefined;
|
|
137
138
|
}
|
|
138
139
|
}));
|
|
@@ -180,7 +181,9 @@ let DebugSession = class DebugSession {
|
|
|
180
181
|
return this._options.suppressDebugView ?? false;
|
|
181
182
|
}
|
|
182
183
|
get autoExpandLazyVariables() {
|
|
183
|
-
|
|
184
|
+
const screenReaderOptimized = this.accessibilityService.isScreenReaderOptimized();
|
|
185
|
+
const value = this.configurationService.getValue('debug').autoExpandLazyVariables;
|
|
186
|
+
return value === 'auto' && screenReaderOptimized || value === 'on';
|
|
184
187
|
}
|
|
185
188
|
setConfiguration(configuration) {
|
|
186
189
|
this._configuration = configuration;
|
|
@@ -286,12 +289,9 @@ let DebugSession = class DebugSession {
|
|
|
286
289
|
}
|
|
287
290
|
async launchOrAttach(config) {
|
|
288
291
|
if (!this.raw) {
|
|
289
|
-
throw ( (new Error(
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
"No debugger available, can not send '{0}'",
|
|
293
|
-
'launch or attach'
|
|
294
|
-
))));
|
|
292
|
+
throw ( (new Error(
|
|
293
|
+
localize(5753, "No debugger available, can not send '{0}'", 'launch or attach')
|
|
294
|
+
)));
|
|
295
295
|
}
|
|
296
296
|
if (this.parentSession && this.parentSession.state === State.Inactive) {
|
|
297
297
|
throw canceled();
|
|
@@ -346,9 +346,7 @@ let DebugSession = class DebugSession {
|
|
|
346
346
|
}
|
|
347
347
|
async restart() {
|
|
348
348
|
if (!this.raw) {
|
|
349
|
-
throw ( (new Error(
|
|
350
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'restart')
|
|
351
|
-
)));
|
|
349
|
+
throw ( (new Error(localize(5753, "No debugger available, can not send '{0}'", 'restart'))));
|
|
352
350
|
}
|
|
353
351
|
this.cancelAllRequests();
|
|
354
352
|
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
@@ -360,9 +358,7 @@ let DebugSession = class DebugSession {
|
|
|
360
358
|
}
|
|
361
359
|
async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
|
|
362
360
|
if (!this.raw) {
|
|
363
|
-
throw ( (new Error(
|
|
364
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'breakpoints')
|
|
365
|
-
)));
|
|
361
|
+
throw ( (new Error(localize(5753, "No debugger available, can not send '{0}'", 'breakpoints'))));
|
|
366
362
|
}
|
|
367
363
|
if (!this.raw.readyForBreakpoints) {
|
|
368
364
|
return Promise.resolve(undefined);
|
|
@@ -390,12 +386,9 @@ let DebugSession = class DebugSession {
|
|
|
390
386
|
}
|
|
391
387
|
async sendFunctionBreakpoints(fbpts) {
|
|
392
388
|
if (!this.raw) {
|
|
393
|
-
throw ( (new Error(
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
"No debugger available, can not send '{0}'",
|
|
397
|
-
'function breakpoints'
|
|
398
|
-
))));
|
|
389
|
+
throw ( (new Error(
|
|
390
|
+
localize(5753, "No debugger available, can not send '{0}'", 'function breakpoints')
|
|
391
|
+
)));
|
|
399
392
|
}
|
|
400
393
|
if (this.raw.readyForBreakpoints) {
|
|
401
394
|
const response = await this.raw.setFunctionBreakpoints({ breakpoints: ( (fbpts.map(bp => bp.toDAP()))) });
|
|
@@ -410,12 +403,9 @@ let DebugSession = class DebugSession {
|
|
|
410
403
|
}
|
|
411
404
|
async sendExceptionBreakpoints(exbpts) {
|
|
412
405
|
if (!this.raw) {
|
|
413
|
-
throw ( (new Error(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
"No debugger available, can not send '{0}'",
|
|
417
|
-
'exception breakpoints'
|
|
418
|
-
))));
|
|
406
|
+
throw ( (new Error(
|
|
407
|
+
localize(5753, "No debugger available, can not send '{0}'", 'exception breakpoints')
|
|
408
|
+
)));
|
|
419
409
|
}
|
|
420
410
|
if (this.raw.readyForBreakpoints) {
|
|
421
411
|
const args = this.capabilities.supportsExceptionFilterOptions ? {
|
|
@@ -439,9 +429,7 @@ let DebugSession = class DebugSession {
|
|
|
439
429
|
}
|
|
440
430
|
dataBytesBreakpointInfo(address, bytes) {
|
|
441
431
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
442
|
-
throw ( (new Error(
|
|
443
|
-
localizeWithPath(_moduleId, 1, "Session does not support breakpoints with bytes")
|
|
444
|
-
)));
|
|
432
|
+
throw ( (new Error(localize(5754, "Session does not support breakpoints with bytes"))));
|
|
445
433
|
}
|
|
446
434
|
return this._dataBreakpointInfo({ name: address, bytes, asAddress: true });
|
|
447
435
|
}
|
|
@@ -450,27 +438,21 @@ let DebugSession = class DebugSession {
|
|
|
450
438
|
}
|
|
451
439
|
async _dataBreakpointInfo(args) {
|
|
452
440
|
if (!this.raw) {
|
|
453
|
-
throw ( (new Error(
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
"No debugger available, can not send '{0}'",
|
|
457
|
-
'data breakpoints info'
|
|
458
|
-
))));
|
|
441
|
+
throw ( (new Error(
|
|
442
|
+
localize(5754, "No debugger available, can not send '{0}'", 'data breakpoints info')
|
|
443
|
+
)));
|
|
459
444
|
}
|
|
460
445
|
if (!this.raw.readyForBreakpoints) {
|
|
461
|
-
throw ( (new Error(
|
|
446
|
+
throw ( (new Error(localize(5755, "Session is not ready for breakpoints"))));
|
|
462
447
|
}
|
|
463
448
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
464
449
|
return response?.body;
|
|
465
450
|
}
|
|
466
451
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
467
452
|
if (!this.raw) {
|
|
468
|
-
throw ( (new Error(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
"No debugger available, can not send '{0}'",
|
|
472
|
-
'data breakpoints'
|
|
473
|
-
))));
|
|
453
|
+
throw ( (new Error(
|
|
454
|
+
localize(5755, "No debugger available, can not send '{0}'", 'data breakpoints')
|
|
455
|
+
)));
|
|
474
456
|
}
|
|
475
457
|
if (this.raw.readyForBreakpoints) {
|
|
476
458
|
const converted = await Promise.all(( (dataBreakpoints.map(async (bp) => {
|
|
@@ -500,9 +482,8 @@ let DebugSession = class DebugSession {
|
|
|
500
482
|
}
|
|
501
483
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
502
484
|
if (!this.raw) {
|
|
503
|
-
throw ( (new Error(
|
|
504
|
-
|
|
505
|
-
0,
|
|
485
|
+
throw ( (new Error(localize(
|
|
486
|
+
5755,
|
|
506
487
|
"No debugger available, can not send '{0}'",
|
|
507
488
|
'instruction breakpoints'
|
|
508
489
|
))));
|
|
@@ -520,12 +501,9 @@ let DebugSession = class DebugSession {
|
|
|
520
501
|
}
|
|
521
502
|
async breakpointsLocations(uri, lineNumber) {
|
|
522
503
|
if (!this.raw) {
|
|
523
|
-
throw ( (new Error(
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
"No debugger available, can not send '{0}'",
|
|
527
|
-
'breakpoints locations'
|
|
528
|
-
))));
|
|
504
|
+
throw ( (new Error(
|
|
505
|
+
localize(5755, "No debugger available, can not send '{0}'", 'breakpoints locations')
|
|
506
|
+
)));
|
|
529
507
|
}
|
|
530
508
|
const source = this.getRawSource(uri);
|
|
531
509
|
const response = await this.raw.breakpointLocations({ source, line: lineNumber });
|
|
@@ -540,17 +518,13 @@ let DebugSession = class DebugSession {
|
|
|
540
518
|
}
|
|
541
519
|
customRequest(request, args) {
|
|
542
520
|
if (!this.raw) {
|
|
543
|
-
throw ( (new Error(
|
|
544
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", request)
|
|
545
|
-
)));
|
|
521
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", request))));
|
|
546
522
|
}
|
|
547
523
|
return this.raw.custom(request, args);
|
|
548
524
|
}
|
|
549
525
|
stackTrace(threadId, startFrame, levels, token) {
|
|
550
526
|
if (!this.raw) {
|
|
551
|
-
throw ( (new Error(
|
|
552
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'stackTrace')
|
|
553
|
-
)));
|
|
527
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'stackTrace'))));
|
|
554
528
|
}
|
|
555
529
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
556
530
|
return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
|
|
@@ -558,7 +532,7 @@ let DebugSession = class DebugSession {
|
|
|
558
532
|
async exceptionInfo(threadId) {
|
|
559
533
|
if (!this.raw) {
|
|
560
534
|
throw ( (new Error(
|
|
561
|
-
|
|
535
|
+
localize(5755, "No debugger available, can not send '{0}'", 'exceptionInfo')
|
|
562
536
|
)));
|
|
563
537
|
}
|
|
564
538
|
const response = await this.raw.exceptionInfo({ threadId });
|
|
@@ -574,27 +548,21 @@ let DebugSession = class DebugSession {
|
|
|
574
548
|
}
|
|
575
549
|
scopes(frameId, threadId) {
|
|
576
550
|
if (!this.raw) {
|
|
577
|
-
throw ( (new Error(
|
|
578
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'scopes')
|
|
579
|
-
)));
|
|
551
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'scopes'))));
|
|
580
552
|
}
|
|
581
553
|
const token = this.getNewCancellationToken(threadId);
|
|
582
554
|
return this.raw.scopes({ frameId }, token);
|
|
583
555
|
}
|
|
584
556
|
variables(variablesReference, threadId, filter, start, count) {
|
|
585
557
|
if (!this.raw) {
|
|
586
|
-
throw ( (new Error(
|
|
587
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'variables')
|
|
588
|
-
)));
|
|
558
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'variables'))));
|
|
589
559
|
}
|
|
590
560
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
591
561
|
return this.raw.variables({ variablesReference, filter, start, count }, token);
|
|
592
562
|
}
|
|
593
563
|
evaluate(expression, frameId, context, location) {
|
|
594
564
|
if (!this.raw) {
|
|
595
|
-
throw ( (new Error(
|
|
596
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'evaluate')
|
|
597
|
-
)));
|
|
565
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'evaluate'))));
|
|
598
566
|
}
|
|
599
567
|
return this.raw.evaluate({ expression, frameId, context, line: location?.line, column: location?.column, source: location?.source });
|
|
600
568
|
}
|
|
@@ -602,7 +570,7 @@ let DebugSession = class DebugSession {
|
|
|
602
570
|
await this.waitForTriggeredBreakpoints();
|
|
603
571
|
if (!this.raw) {
|
|
604
572
|
throw ( (new Error(
|
|
605
|
-
|
|
573
|
+
localize(5755, "No debugger available, can not send '{0}'", 'restartFrame')
|
|
606
574
|
)));
|
|
607
575
|
}
|
|
608
576
|
await this.raw.restartFrame({ frameId }, threadId);
|
|
@@ -616,9 +584,7 @@ let DebugSession = class DebugSession {
|
|
|
616
584
|
async next(threadId, granularity) {
|
|
617
585
|
await this.waitForTriggeredBreakpoints();
|
|
618
586
|
if (!this.raw) {
|
|
619
|
-
throw ( (new Error(
|
|
620
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'next')
|
|
621
|
-
)));
|
|
587
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'next'))));
|
|
622
588
|
}
|
|
623
589
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
624
590
|
await this.raw.next({ threadId, granularity });
|
|
@@ -626,9 +592,7 @@ let DebugSession = class DebugSession {
|
|
|
626
592
|
async stepIn(threadId, targetId, granularity) {
|
|
627
593
|
await this.waitForTriggeredBreakpoints();
|
|
628
594
|
if (!this.raw) {
|
|
629
|
-
throw ( (new Error(
|
|
630
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'stepIn')
|
|
631
|
-
)));
|
|
595
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'stepIn'))));
|
|
632
596
|
}
|
|
633
597
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
634
598
|
await this.raw.stepIn({ threadId, targetId, granularity });
|
|
@@ -636,9 +600,7 @@ let DebugSession = class DebugSession {
|
|
|
636
600
|
async stepOut(threadId, granularity) {
|
|
637
601
|
await this.waitForTriggeredBreakpoints();
|
|
638
602
|
if (!this.raw) {
|
|
639
|
-
throw ( (new Error(
|
|
640
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'stepOut')
|
|
641
|
-
)));
|
|
603
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'stepOut'))));
|
|
642
604
|
}
|
|
643
605
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
644
606
|
await this.raw.stepOut({ threadId, granularity });
|
|
@@ -646,9 +608,7 @@ let DebugSession = class DebugSession {
|
|
|
646
608
|
async stepBack(threadId, granularity) {
|
|
647
609
|
await this.waitForTriggeredBreakpoints();
|
|
648
610
|
if (!this.raw) {
|
|
649
|
-
throw ( (new Error(
|
|
650
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'stepBack')
|
|
651
|
-
)));
|
|
611
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'stepBack'))));
|
|
652
612
|
}
|
|
653
613
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
654
614
|
await this.raw.stepBack({ threadId, granularity });
|
|
@@ -656,78 +616,62 @@ let DebugSession = class DebugSession {
|
|
|
656
616
|
async continue(threadId) {
|
|
657
617
|
await this.waitForTriggeredBreakpoints();
|
|
658
618
|
if (!this.raw) {
|
|
659
|
-
throw ( (new Error(
|
|
660
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'continue')
|
|
661
|
-
)));
|
|
619
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'continue'))));
|
|
662
620
|
}
|
|
663
621
|
await this.raw.continue({ threadId });
|
|
664
622
|
}
|
|
665
623
|
async reverseContinue(threadId) {
|
|
666
624
|
await this.waitForTriggeredBreakpoints();
|
|
667
625
|
if (!this.raw) {
|
|
668
|
-
throw ( (new Error(
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
"No debugger available, can not send '{0}'",
|
|
672
|
-
'reverse continue'
|
|
673
|
-
))));
|
|
626
|
+
throw ( (new Error(
|
|
627
|
+
localize(5755, "No debugger available, can not send '{0}'", 'reverse continue')
|
|
628
|
+
)));
|
|
674
629
|
}
|
|
675
630
|
await this.raw.reverseContinue({ threadId });
|
|
676
631
|
}
|
|
677
632
|
async pause(threadId) {
|
|
678
633
|
if (!this.raw) {
|
|
679
|
-
throw ( (new Error(
|
|
680
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'pause')
|
|
681
|
-
)));
|
|
634
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'pause'))));
|
|
682
635
|
}
|
|
683
636
|
await this.raw.pause({ threadId });
|
|
684
637
|
}
|
|
685
638
|
async terminateThreads(threadIds) {
|
|
686
639
|
if (!this.raw) {
|
|
687
|
-
throw ( (new Error(
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
"No debugger available, can not send '{0}'",
|
|
691
|
-
'terminateThreads'
|
|
692
|
-
))));
|
|
640
|
+
throw ( (new Error(
|
|
641
|
+
localize(5755, "No debugger available, can not send '{0}'", 'terminateThreads')
|
|
642
|
+
)));
|
|
693
643
|
}
|
|
694
644
|
await this.raw.terminateThreads({ threadIds });
|
|
695
645
|
}
|
|
696
646
|
setVariable(variablesReference, name, value) {
|
|
697
647
|
if (!this.raw) {
|
|
698
|
-
throw ( (new Error(
|
|
699
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'setVariable')
|
|
700
|
-
)));
|
|
648
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'setVariable'))));
|
|
701
649
|
}
|
|
702
650
|
return this.raw.setVariable({ variablesReference, name, value });
|
|
703
651
|
}
|
|
704
652
|
setExpression(frameId, expression, value) {
|
|
705
653
|
if (!this.raw) {
|
|
706
654
|
throw ( (new Error(
|
|
707
|
-
|
|
655
|
+
localize(5755, "No debugger available, can not send '{0}'", 'setExpression')
|
|
708
656
|
)));
|
|
709
657
|
}
|
|
710
658
|
return this.raw.setExpression({ expression, value, frameId });
|
|
711
659
|
}
|
|
712
660
|
gotoTargets(source, line, column) {
|
|
713
661
|
if (!this.raw) {
|
|
714
|
-
throw ( (new Error(
|
|
715
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'gotoTargets')
|
|
716
|
-
)));
|
|
662
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'gotoTargets'))));
|
|
717
663
|
}
|
|
718
664
|
return this.raw.gotoTargets({ source, line, column });
|
|
719
665
|
}
|
|
720
666
|
goto(threadId, targetId) {
|
|
721
667
|
if (!this.raw) {
|
|
722
|
-
throw ( (new Error(
|
|
723
|
-
localizeWithPath(_moduleId, 0, "No debugger available, can not send '{0}'", 'goto')
|
|
724
|
-
)));
|
|
668
|
+
throw ( (new Error(localize(5755, "No debugger available, can not send '{0}'", 'goto'))));
|
|
725
669
|
}
|
|
726
670
|
return this.raw.goto({ threadId, targetId });
|
|
727
671
|
}
|
|
728
672
|
loadSource(resource) {
|
|
729
673
|
if (!this.raw) {
|
|
730
|
-
return Promise.reject(( (new Error((
|
|
674
|
+
return Promise.reject(( (new Error(( localize(5755, "No debugger available, can not send '{0}'", 'loadSource'))))));
|
|
731
675
|
}
|
|
732
676
|
const source = this.getSourceForUri(resource);
|
|
733
677
|
let rawSource;
|
|
@@ -742,12 +686,7 @@ let DebugSession = class DebugSession {
|
|
|
742
686
|
}
|
|
743
687
|
async getLoadedSources() {
|
|
744
688
|
if (!this.raw) {
|
|
745
|
-
return Promise.reject(( (new Error((
|
|
746
|
-
_moduleId,
|
|
747
|
-
0,
|
|
748
|
-
"No debugger available, can not send '{0}'",
|
|
749
|
-
'getLoadedSources'
|
|
750
|
-
))))));
|
|
689
|
+
return Promise.reject(( (new Error(( localize(5755, "No debugger available, can not send '{0}'", 'getLoadedSources'))))));
|
|
751
690
|
}
|
|
752
691
|
const response = await this.raw.loadedSources({});
|
|
753
692
|
if (response?.body && response.body.sources) {
|
|
@@ -761,7 +700,7 @@ let DebugSession = class DebugSession {
|
|
|
761
700
|
}
|
|
762
701
|
async completions(frameId, threadId, text, position, overwriteBefore, token) {
|
|
763
702
|
if (!this.raw) {
|
|
764
|
-
return Promise.reject(( (new Error((
|
|
703
|
+
return Promise.reject(( (new Error(( localize(5755, "No debugger available, can not send '{0}'", 'completions'))))));
|
|
765
704
|
}
|
|
766
705
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
767
706
|
return this.raw.completions({
|
|
@@ -773,33 +712,33 @@ let DebugSession = class DebugSession {
|
|
|
773
712
|
}
|
|
774
713
|
async stepInTargets(frameId) {
|
|
775
714
|
if (!this.raw) {
|
|
776
|
-
return Promise.reject(( (new Error((
|
|
715
|
+
return Promise.reject(( (new Error(( localize(5755, "No debugger available, can not send '{0}'", 'stepInTargets'))))));
|
|
777
716
|
}
|
|
778
717
|
const response = await this.raw.stepInTargets({ frameId });
|
|
779
718
|
return response?.body.targets;
|
|
780
719
|
}
|
|
781
720
|
async cancel(progressId) {
|
|
782
721
|
if (!this.raw) {
|
|
783
|
-
return Promise.reject(( (new Error((
|
|
722
|
+
return Promise.reject(( (new Error(( localize(5755, "No debugger available, can not send '{0}'", 'cancel'))))));
|
|
784
723
|
}
|
|
785
724
|
return this.raw.cancel({ progressId });
|
|
786
725
|
}
|
|
787
726
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
788
727
|
if (!this.raw) {
|
|
789
|
-
return Promise.reject(( (new Error((
|
|
728
|
+
return Promise.reject(( (new Error(( localize(5755, "No debugger available, can not send '{0}'", 'disassemble'))))));
|
|
790
729
|
}
|
|
791
730
|
const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
|
|
792
731
|
return response?.body?.instructions;
|
|
793
732
|
}
|
|
794
733
|
readMemory(memoryReference, offset, count) {
|
|
795
734
|
if (!this.raw) {
|
|
796
|
-
return Promise.reject(( (new Error((
|
|
735
|
+
return Promise.reject(( (new Error(( localize(5755, "No debugger available, can not send '{0}'", 'readMemory'))))));
|
|
797
736
|
}
|
|
798
737
|
return this.raw.readMemory({ count, memoryReference, offset });
|
|
799
738
|
}
|
|
800
739
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
801
740
|
if (!this.raw) {
|
|
802
|
-
return Promise.reject(( (new Error((
|
|
741
|
+
return Promise.reject(( (new Error(( localize(5755, "No debugger available, can not send '{0}'", 'disassemble'))))));
|
|
803
742
|
}
|
|
804
743
|
return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
|
|
805
744
|
}
|
|
@@ -910,8 +849,8 @@ let DebugSession = class DebugSession {
|
|
|
910
849
|
}
|
|
911
850
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
912
851
|
status(this.configuration.noDebug
|
|
913
|
-
? (
|
|
914
|
-
: (
|
|
852
|
+
? ( localize(5756, "Started running without debugging."))
|
|
853
|
+
: ( localize(5757, "Debugging started.")));
|
|
915
854
|
const sendConfigurationDone = async () => {
|
|
916
855
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
917
856
|
try {
|
|
@@ -958,7 +897,7 @@ let DebugSession = class DebugSession {
|
|
|
958
897
|
}
|
|
959
898
|
}));
|
|
960
899
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
|
|
961
|
-
status((
|
|
900
|
+
status(( localize(5758, "Debugging stopped.")));
|
|
962
901
|
if (event.body && event.body.restart) {
|
|
963
902
|
await this.debugService.restartSession(this, event.body.restart);
|
|
964
903
|
}
|
|
@@ -1329,7 +1268,8 @@ DebugSession = ( (__decorate([
|
|
|
1329
1268
|
( (__param(17, IWorkbenchEnvironmentService))),
|
|
1330
1269
|
( (__param(18, ILogService))),
|
|
1331
1270
|
( (__param(19, ITestService))),
|
|
1332
|
-
( (__param(20, ITestResultService)))
|
|
1271
|
+
( (__param(20, ITestResultService))),
|
|
1272
|
+
( (__param(21, IAccessibilityService)))
|
|
1333
1273
|
], DebugSession)));
|
|
1334
1274
|
class ThreadStatusScheduler extends Disposable {
|
|
1335
1275
|
constructor() {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
2
|
+
import { Extensions } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
3
|
+
|
|
4
|
+
( Registry.as(Extensions.ConfigurationMigration))
|
|
5
|
+
.registerConfigurationMigrations([{
|
|
6
|
+
key: 'debug.autoExpandLazyVariables',
|
|
7
|
+
migrateFn: (value) => {
|
|
8
|
+
let newValue;
|
|
9
|
+
if (value === true) {
|
|
10
|
+
newValue = 'on';
|
|
11
|
+
}
|
|
12
|
+
else if (value === false) {
|
|
13
|
+
newValue = 'off';
|
|
14
|
+
}
|
|
15
|
+
return [
|
|
16
|
+
['debug.autoExpandLazyVariables', { value: newValue }],
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
}]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { State } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
5
5
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
@@ -7,7 +7,6 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
|
|
|
7
7
|
import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
8
8
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
9
9
|
|
|
10
|
-
const _moduleId = "vs/workbench/contrib/debug/browser/debugStatus";
|
|
11
10
|
let DebugStatusContribution = class DebugStatusContribution {
|
|
12
11
|
constructor(statusBarService, debugService, configurationService) {
|
|
13
12
|
this.statusBarService = statusBarService;
|
|
@@ -50,10 +49,10 @@ let DebugStatusContribution = class DebugStatusContribution {
|
|
|
50
49
|
text = (manager.getLaunches().length > 1 ? `${name} (${manager.selectedConfiguration.launch.name})` : name);
|
|
51
50
|
}
|
|
52
51
|
return {
|
|
53
|
-
name: (
|
|
52
|
+
name: ( localize(6002, "Debug")),
|
|
54
53
|
text: '$(debug-alt-small) ' + text,
|
|
55
|
-
ariaLabel: (
|
|
56
|
-
tooltip: (
|
|
54
|
+
ariaLabel: ( localize(6003, "Debug: {0}", text)),
|
|
55
|
+
tooltip: ( localize(6004, "Select and start debug configuration")),
|
|
57
56
|
command: 'workbench.action.debug.selectandstart'
|
|
58
57
|
};
|
|
59
58
|
}
|