@codingame/monaco-vscode-debug-service-override 23.2.2 → 24.1.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 -14
- package/service-override/tools/debugAssets.js +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +128 -126
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +430 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +47 -47
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +19 -19
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.d.ts +1 -1
- 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.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -17,23 +17,23 @@ import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
17
17
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
18
18
|
import { PanelFocusContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
19
19
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
20
|
-
import { openBreakpointSource } from '@codingame/monaco-vscode-
|
|
20
|
+
import { openBreakpointSource } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
|
|
21
21
|
import { DisassemblyView } from './disassemblyView.js';
|
|
22
22
|
import { CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_DISASSEMBLY_VIEW_FOCUS, BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointWidgetContext, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_STATE, CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED, CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST, CONTEXT_CALLSTACK_ITEM_TYPE, CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE, REPL_VIEW_ID, WATCH_VIEW_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_EXCEPTION_WIDGET_VISIBLE } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
23
23
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
24
24
|
import { getEvaluatableExpressionAtPosition } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
25
|
-
import { DisassemblyViewInput } from '@codingame/monaco-vscode-
|
|
25
|
+
import { DisassemblyViewInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
26
26
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
27
27
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
28
|
-
import { TOGGLE_BREAKPOINT_ID } from '@codingame/monaco-vscode-
|
|
28
|
+
import { TOGGLE_BREAKPOINT_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
29
29
|
|
|
30
30
|
class ToggleBreakpointAction extends Action2 {
|
|
31
31
|
constructor() {
|
|
32
32
|
super({
|
|
33
33
|
id: TOGGLE_BREAKPOINT_ID,
|
|
34
34
|
title: {
|
|
35
|
-
...( localize2(
|
|
36
|
-
mnemonicTitle: ( localize(
|
|
35
|
+
...( localize2(6750, "Debug: Toggle Breakpoint")),
|
|
36
|
+
mnemonicTitle: ( localize(6751, "Toggle &&Breakpoint")),
|
|
37
37
|
},
|
|
38
38
|
f1: true,
|
|
39
39
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -90,11 +90,11 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
90
90
|
constructor() {
|
|
91
91
|
super({
|
|
92
92
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
93
|
-
label: ( localize2(
|
|
93
|
+
label: ( localize2(6752, "Debug: Add Conditional Breakpoint...")),
|
|
94
94
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
95
95
|
menuOpts: {
|
|
96
96
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(6753, "&&Conditional Breakpoint...")),
|
|
98
98
|
group: '1_breakpoints',
|
|
99
99
|
order: 1,
|
|
100
100
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -113,12 +113,12 @@ class LogPointAction extends EditorAction {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'editor.debug.action.addLogPoint',
|
|
116
|
-
label: ( localize2(
|
|
116
|
+
label: ( localize2(6754, "Debug: Add Logpoint...")),
|
|
117
117
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
118
118
|
menuOpts: [
|
|
119
119
|
{
|
|
120
120
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
121
|
-
title: ( localize(
|
|
121
|
+
title: ( localize(6755, "&&Logpoint...")),
|
|
122
122
|
group: '1_breakpoints',
|
|
123
123
|
order: 4,
|
|
124
124
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -138,13 +138,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
138
138
|
constructor() {
|
|
139
139
|
super({
|
|
140
140
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
141
|
-
label: ( localize(
|
|
141
|
+
label: ( localize(6756, "Debug: Add Triggered Breakpoint...")),
|
|
142
142
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
143
143
|
alias: 'Debug: Triggered Breakpoint...',
|
|
144
144
|
menuOpts: [
|
|
145
145
|
{
|
|
146
146
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
147
|
-
title: ( localize(
|
|
147
|
+
title: ( localize(6757, "&&Triggered Breakpoint...")),
|
|
148
148
|
group: '1_breakpoints',
|
|
149
149
|
order: 4,
|
|
150
150
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -164,12 +164,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
164
164
|
constructor() {
|
|
165
165
|
super({
|
|
166
166
|
id: 'editor.debug.action.editBreakpoint',
|
|
167
|
-
label: ( localize(
|
|
167
|
+
label: ( localize(6758, "Debug: Edit Breakpoint")),
|
|
168
168
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
169
169
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
170
170
|
menuOpts: {
|
|
171
171
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
172
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(6759, "&&Edit Breakpoint")),
|
|
173
173
|
group: '1_breakpoints',
|
|
174
174
|
order: 1,
|
|
175
175
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -204,8 +204,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
204
204
|
super({
|
|
205
205
|
id: OpenDisassemblyViewAction.ID,
|
|
206
206
|
title: {
|
|
207
|
-
...( localize2(
|
|
208
|
-
mnemonicTitle: ( localize(
|
|
207
|
+
...( localize2(6760, "Open Disassembly View")),
|
|
208
|
+
mnemonicTitle: ( localize(6761, "&&DisassemblyView")),
|
|
209
209
|
},
|
|
210
210
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
211
211
|
menu: [
|
|
@@ -240,11 +240,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
240
240
|
super({
|
|
241
241
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
242
242
|
title: {
|
|
243
|
-
...( localize2(
|
|
244
|
-
mnemonicTitle: ( localize(
|
|
243
|
+
...( localize2(6762, "Toggle Source Code in Disassembly View")),
|
|
244
|
+
mnemonicTitle: ( localize(6763, "&&ToggleSource")),
|
|
245
245
|
},
|
|
246
246
|
metadata: {
|
|
247
|
-
description: ( localize2(
|
|
247
|
+
description: ( localize2(6764, 'Shows or hides source code in disassembly'))
|
|
248
248
|
},
|
|
249
249
|
f1: true,
|
|
250
250
|
});
|
|
@@ -259,7 +259,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
259
259
|
}
|
|
260
260
|
class RunToCursorAction extends EditorAction {
|
|
261
261
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
262
|
-
static { this.LABEL = ( localize2(
|
|
262
|
+
static { this.LABEL = ( localize2(6765, "Run to Cursor")); }
|
|
263
263
|
constructor() {
|
|
264
264
|
super({
|
|
265
265
|
id: RunToCursorAction.ID,
|
|
@@ -292,7 +292,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
292
292
|
}
|
|
293
293
|
class SelectionToReplAction extends EditorAction {
|
|
294
294
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
295
|
-
static { this.LABEL = ( localize2(
|
|
295
|
+
static { this.LABEL = ( localize2(6766, "Evaluate in Debug Console")); }
|
|
296
296
|
constructor() {
|
|
297
297
|
super({
|
|
298
298
|
id: SelectionToReplAction.ID,
|
|
@@ -327,7 +327,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
327
327
|
}
|
|
328
328
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
329
329
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
330
|
-
static { this.LABEL = ( localize2(
|
|
330
|
+
static { this.LABEL = ( localize2(6767, "Add to Watch")); }
|
|
331
331
|
constructor() {
|
|
332
332
|
super({
|
|
333
333
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -372,7 +372,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: 'editor.debug.action.showDebugHover',
|
|
375
|
-
label: ( localize2(
|
|
375
|
+
label: ( localize2(6768, "Debug: Show Hover")),
|
|
376
376
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
377
377
|
kbOpts: {
|
|
378
378
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -389,10 +389,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
389
389
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
392
|
+
const NO_TARGETS_MESSAGE = ( localize(6769, "Step targets are not available here"));
|
|
393
393
|
class StepIntoTargetsAction extends EditorAction {
|
|
394
394
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
395
|
-
static { this.LABEL = ( localize(
|
|
395
|
+
static { this.LABEL = ( localize(6770, "Step Into Target")); }
|
|
396
396
|
constructor() {
|
|
397
397
|
super({
|
|
398
398
|
id: StepIntoTargetsAction.ID,
|
|
@@ -493,7 +493,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
493
493
|
constructor() {
|
|
494
494
|
super(true, {
|
|
495
495
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
496
|
-
label: ( localize2(
|
|
496
|
+
label: ( localize2(6771, "Debug: Go to Next Breakpoint")),
|
|
497
497
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
498
498
|
});
|
|
499
499
|
}
|
|
@@ -502,7 +502,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
502
502
|
constructor() {
|
|
503
503
|
super(false, {
|
|
504
504
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
505
|
-
label: ( localize2(
|
|
505
|
+
label: ( localize2(6772, "Debug: Go to Previous Breakpoint")),
|
|
506
506
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
507
507
|
});
|
|
508
508
|
}
|
|
@@ -511,7 +511,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
511
511
|
constructor() {
|
|
512
512
|
super({
|
|
513
513
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
514
|
-
label: ( localize2(
|
|
514
|
+
label: ( localize2(6773, "Close Exception Widget")),
|
|
515
515
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
516
516
|
kbOpts: {
|
|
517
517
|
primary: KeyCode.Escape,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IQuickPickSeparator } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput";
|
|
2
|
-
import { PickerQuickAccessProvider, IPickerQuickAccessItem } from "@codingame/monaco-vscode-
|
|
2
|
+
import { PickerQuickAccessProvider, IPickerQuickAccessItem } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
3
3
|
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
4
4
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
5
5
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { PickerQuickAccessProvider, TriggerAction } from '@codingame/monaco-vscode-
|
|
3
|
+
import { PickerQuickAccessProvider, TriggerAction } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
4
4
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
5
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
6
6
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
@@ -8,15 +8,15 @@ import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
8
8
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
9
9
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
10
10
|
import { matchesFuzzy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/filters';
|
|
11
|
-
import { DEBUG_QUICK_ACCESS_PREFIX, ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-
|
|
12
|
-
import { debugConfigure, debugRemoveConfig } from '@codingame/monaco-vscode-
|
|
11
|
+
import { DEBUG_QUICK_ACCESS_PREFIX, ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
12
|
+
import { debugConfigure, debugRemoveConfig } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
13
13
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
14
14
|
|
|
15
15
|
let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends PickerQuickAccessProvider {
|
|
16
16
|
constructor(debugService, contextService, commandService, notificationService) {
|
|
17
17
|
super(DEBUG_QUICK_ACCESS_PREFIX, {
|
|
18
18
|
noResultsPick: {
|
|
19
|
-
label: ( localize(
|
|
19
|
+
label: ( localize(6836, "No matching launch configurations"))
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
this.debugService = debugService;
|
|
@@ -42,7 +42,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
42
42
|
highlights: { label: highlights },
|
|
43
43
|
buttons: [{
|
|
44
44
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
45
|
-
tooltip: ( localize(
|
|
45
|
+
tooltip: ( localize(6837, "Configure Launch Configuration"))
|
|
46
46
|
}],
|
|
47
47
|
trigger: () => {
|
|
48
48
|
config.launch.openConfigFile({ preserveFocus: false });
|
|
@@ -59,7 +59,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
if (selectedConfiguration.name === config.name && selectedConfiguration.launch === config.launch) {
|
|
62
|
-
const separator = { type: 'separator', label: ( localize(
|
|
62
|
+
const separator = { type: 'separator', label: ( localize(6838, 'Most Recent')) };
|
|
63
63
|
picks.unshift(separator, pick);
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
@@ -73,7 +73,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
73
73
|
const dynamicProviders = await configManager.getDynamicProviders();
|
|
74
74
|
if (dynamicProviders.length > 0) {
|
|
75
75
|
picks.push({
|
|
76
|
-
type: 'separator', label: ( localize(
|
|
76
|
+
type: 'separator', label: ( localize(6839, "contributed"))
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
@@ -84,7 +84,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
84
84
|
highlights: { label: highlights },
|
|
85
85
|
buttons: [{
|
|
86
86
|
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
87
|
-
tooltip: ( localize(
|
|
87
|
+
tooltip: ( localize(6840, "Remove Launch Configuration"))
|
|
88
88
|
}],
|
|
89
89
|
trigger: () => {
|
|
90
90
|
configManager.removeRecentDynamicConfigurations(name, type);
|
|
@@ -107,7 +107,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
107
107
|
dynamicProviders.forEach(provider => {
|
|
108
108
|
picks.push({
|
|
109
109
|
label: `$(folder) ${provider.label}...`,
|
|
110
|
-
ariaLabel: ( localize(
|
|
110
|
+
ariaLabel: ( localize(6841, "{0} contributed configurations", provider.label)),
|
|
111
111
|
accept: async () => {
|
|
112
112
|
const pick = await provider.pick();
|
|
113
113
|
if (pick) {
|
|
@@ -119,12 +119,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
119
119
|
});
|
|
120
120
|
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
121
121
|
if (visibleLaunches.length > 0) {
|
|
122
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
122
|
+
picks.push({ type: 'separator', label: ( localize(6842, "configure")) });
|
|
123
123
|
}
|
|
124
124
|
for (const launch of visibleLaunches) {
|
|
125
125
|
const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ?
|
|
126
|
-
( localize(
|
|
127
|
-
( localize(
|
|
126
|
+
( localize(6843, "Add Config ({0})...", launch.name)) :
|
|
127
|
+
( localize(6844, "Add Configuration..."));
|
|
128
128
|
picks.push({
|
|
129
129
|
label,
|
|
130
130
|
description: this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? launch.name : '',
|
|
@@ -24,7 +24,7 @@ import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/
|
|
|
24
24
|
import { ITestService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service";
|
|
25
25
|
import { IAdapterManager, IBreakpoint, IBreakpointData, IBreakpointUpdateData, IConfig, IConfigurationManager, IDebugModel, IDebugSession, IDebugSessionOptions, IEnablement, IExceptionBreakpoint, ILaunch, IStackFrame, IThread, IViewModel, State } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
26
26
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
27
|
-
import { IDataBreakpointOptions, IFunctionBreakpointOptions, IInstructionBreakpointOptions } from "@codingame/monaco-vscode-
|
|
27
|
+
import { IDataBreakpointOptions, IFunctionBreakpointOptions, IInstructionBreakpointOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugModel";
|
|
28
28
|
export declare class DebugService implements IDebugService {
|
|
29
29
|
private readonly editorService;
|
|
30
30
|
private readonly paneCompositeService;
|
|
@@ -32,7 +32,7 @@ import { IWorkspaceTrustRequestService } from '@codingame/monaco-vscode-api/vsco
|
|
|
32
32
|
import { EditorsOrder } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
33
33
|
import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
34
34
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
35
|
-
import { NumberBadge } from '@codingame/monaco-vscode-
|
|
35
|
+
import { NumberBadge } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity';
|
|
36
36
|
import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
|
|
37
37
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
38
38
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
@@ -41,19 +41,19 @@ import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
41
41
|
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
42
42
|
import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
43
43
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
44
|
-
import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-
|
|
44
|
+
import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/common/files';
|
|
45
45
|
import { ITestService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service';
|
|
46
46
|
import { State, CALLSTACK_VIEW_ID, DEBUG_MEMORY_SCHEME, CONTEXT_DEBUG_TYPE, CONTEXT_DEBUG_STATE, CONTEXT_HAS_DEBUGGED, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_UX, CONTEXT_BREAKPOINTS_EXIST, CONTEXT_DISASSEMBLY_VIEW_FOCUS, getStateLabel, debuggerDisabledMessage, VIEWLET_ID, REPL_VIEW_ID, DEBUG_SCHEME } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
47
47
|
import { DebugCompoundRoot } from '../common/debugCompoundRoot.js';
|
|
48
|
-
import { DebugModel, Breakpoint, FunctionBreakpoint, DataBreakpoint, InstructionBreakpoint } from '@codingame/monaco-vscode-
|
|
49
|
-
import { Source } from '@codingame/monaco-vscode-
|
|
48
|
+
import { DebugModel, Breakpoint, FunctionBreakpoint, DataBreakpoint, InstructionBreakpoint } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
49
|
+
import { Source } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugSource';
|
|
50
50
|
import { DebugStorage } from '../common/debugStorage.js';
|
|
51
51
|
import { DebugTelemetry } from '../common/debugTelemetry.js';
|
|
52
52
|
import { saveAllBeforeDebugStart, getExtensionHostDebugSession } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
53
53
|
import { ViewModel } from '../common/debugViewModel.js';
|
|
54
|
-
import { DisassemblyViewInput } from '@codingame/monaco-vscode-
|
|
54
|
+
import { DisassemblyViewInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
55
55
|
import { AdapterManager } from './debugAdapterManager.js';
|
|
56
|
-
import { DEBUG_CONFIGURE_COMMAND_ID, DEBUG_CONFIGURE_LABEL } from '@codingame/monaco-vscode-
|
|
56
|
+
import { DEBUG_CONFIGURE_COMMAND_ID, DEBUG_CONFIGURE_LABEL } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
57
57
|
import { ConfigurationManager } from './debugConfigurationManager.js';
|
|
58
58
|
import { DebugMemoryFileSystemProvider } from './debugMemory.js';
|
|
59
59
|
import { DebugSession } from './debugSession.js';
|
|
@@ -142,7 +142,7 @@ let DebugService = class DebugService {
|
|
|
142
142
|
if (numberOfSessions > 0) {
|
|
143
143
|
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
|
|
144
144
|
if (viewContainer) {
|
|
145
|
-
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(
|
|
145
|
+
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(6845, "1 active session")) : ( localize(6846, "{0} active sessions", n)))) });
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}));
|
|
@@ -164,7 +164,7 @@ let DebugService = class DebugService {
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
this.disposables.add(extensionService.onWillStop(evt => {
|
|
167
|
-
evt.veto(this.model.getSessions().length > 0, ( localize(
|
|
167
|
+
evt.veto(this.model.getSessions().length > 0, ( localize(6847, 'A debug session is still running that would terminate.')));
|
|
168
168
|
}));
|
|
169
169
|
this.initContextKeys(contextKeyService);
|
|
170
170
|
}
|
|
@@ -273,8 +273,8 @@ let DebugService = class DebugService {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
|
|
276
|
-
const message = options && options.noDebug ? ( localize(
|
|
277
|
-
|
|
276
|
+
const message = options && options.noDebug ? ( localize(6848, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
277
|
+
6849,
|
|
278
278
|
"Debugging executes build tasks and program code from your workspace."
|
|
279
279
|
));
|
|
280
280
|
const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
@@ -305,7 +305,7 @@ let DebugService = class DebugService {
|
|
|
305
305
|
if (compound) {
|
|
306
306
|
if (!compound.configurations) {
|
|
307
307
|
throw ( new Error(( localize(
|
|
308
|
-
|
|
308
|
+
6850,
|
|
309
309
|
"Compound must have \"configurations\" attribute set in order to start multiple configurations."
|
|
310
310
|
))));
|
|
311
311
|
}
|
|
@@ -334,9 +334,9 @@ let DebugService = class DebugService {
|
|
|
334
334
|
launchForName = launch;
|
|
335
335
|
}
|
|
336
336
|
else {
|
|
337
|
-
throw ( new Error(launchesContainingName.length === 0 ? ( localize(
|
|
337
|
+
throw ( new Error(launchesContainingName.length === 0 ? ( localize(6851, "Could not find launch configuration '{0}' in the workspace.", name))
|
|
338
338
|
: ( localize(
|
|
339
|
-
|
|
339
|
+
6852,
|
|
340
340
|
"There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
|
|
341
341
|
name
|
|
342
342
|
))));
|
|
@@ -349,7 +349,7 @@ let DebugService = class DebugService {
|
|
|
349
349
|
}
|
|
350
350
|
else {
|
|
351
351
|
throw ( new Error(( localize(
|
|
352
|
-
|
|
352
|
+
6853,
|
|
353
353
|
"Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
|
|
354
354
|
configData.folder,
|
|
355
355
|
configData.name,
|
|
@@ -365,11 +365,11 @@ let DebugService = class DebugService {
|
|
|
365
365
|
}
|
|
366
366
|
if (configOrName && !config) {
|
|
367
367
|
const message = !!launch ? ( localize(
|
|
368
|
-
|
|
368
|
+
6854,
|
|
369
369
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
370
370
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
371
371
|
)) :
|
|
372
|
-
( localize(
|
|
372
|
+
( localize(6855, "'launch.json' does not exist for passed workspace folder."));
|
|
373
373
|
throw ( new Error(message));
|
|
374
374
|
}
|
|
375
375
|
const result = await this.createSession(launch, config, options);
|
|
@@ -473,25 +473,25 @@ let DebugService = class DebugService {
|
|
|
473
473
|
let message;
|
|
474
474
|
if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
|
|
475
475
|
message = configByProviders.request ? ( localize(
|
|
476
|
-
|
|
476
|
+
6856,
|
|
477
477
|
"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
|
|
478
478
|
'request',
|
|
479
479
|
configByProviders.request
|
|
480
480
|
))
|
|
481
481
|
: ( localize(
|
|
482
|
-
|
|
482
|
+
6857,
|
|
483
483
|
"Attribute '{0}' is missing from the chosen debug configuration.",
|
|
484
484
|
'request'
|
|
485
485
|
));
|
|
486
486
|
}
|
|
487
487
|
else {
|
|
488
|
-
message = resolvedConfig.type ? ( localize(
|
|
489
|
-
( localize(
|
|
488
|
+
message = resolvedConfig.type ? ( localize(6858, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
489
|
+
( localize(6859, "Missing property 'type' for the chosen launch configuration."));
|
|
490
490
|
}
|
|
491
491
|
const actionList = [];
|
|
492
492
|
actionList.push(toAction({
|
|
493
493
|
id: 'installAdditionalDebuggers',
|
|
494
|
-
label: ( localize(
|
|
494
|
+
label: ( localize(6860, "Install {0} Extension", resolvedConfig.type)),
|
|
495
495
|
enabled: true,
|
|
496
496
|
run: async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)
|
|
497
497
|
}));
|
|
@@ -515,7 +515,7 @@ let DebugService = class DebugService {
|
|
|
515
515
|
}
|
|
516
516
|
else if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
|
|
517
517
|
await this.showError(( localize(
|
|
518
|
-
|
|
518
|
+
6861,
|
|
519
519
|
"The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
|
|
520
520
|
)));
|
|
521
521
|
}
|
|
@@ -583,7 +583,7 @@ let DebugService = class DebugService {
|
|
|
583
583
|
async confirmConcurrentSession(sessionLabel) {
|
|
584
584
|
const result = await this.dialogService.confirm({
|
|
585
585
|
message: ( localize(
|
|
586
|
-
|
|
586
|
+
6862,
|
|
587
587
|
"'{0}' is already running. Do you want to start another instance?",
|
|
588
588
|
sessionLabel
|
|
589
589
|
))
|
|
@@ -634,7 +634,7 @@ let DebugService = class DebugService {
|
|
|
634
634
|
if (adapterExitEvent) {
|
|
635
635
|
if (adapterExitEvent.error) {
|
|
636
636
|
this.notificationService.error(( localize(
|
|
637
|
-
|
|
637
|
+
6863,
|
|
638
638
|
"Debug adapter process has terminated unexpectedly ({0})",
|
|
639
639
|
adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
|
|
640
640
|
)));
|
|
@@ -874,7 +874,7 @@ let DebugService = class DebugService {
|
|
|
874
874
|
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
875
875
|
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
876
876
|
alert(( localize(
|
|
877
|
-
|
|
877
|
+
6864,
|
|
878
878
|
"{0}, debugging paused {1}, {2}:{3}",
|
|
879
879
|
lineContent,
|
|
880
880
|
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
@@ -947,7 +947,7 @@ let DebugService = class DebugService {
|
|
|
947
947
|
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
948
948
|
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
949
949
|
if (ariaAnnounce) {
|
|
950
|
-
breakpoints.forEach(bp => status(( localize(
|
|
950
|
+
breakpoints.forEach(bp => status(( localize(6865, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
|
|
951
951
|
}
|
|
952
952
|
this.debugStorage.storeBreakpoints(this.model);
|
|
953
953
|
await this.sendBreakpoints(uri);
|
|
@@ -969,7 +969,7 @@ let DebugService = class DebugService {
|
|
|
969
969
|
const breakpoints = this.model.getBreakpoints();
|
|
970
970
|
const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
|
|
971
971
|
toRemove.forEach(bp => status(( localize(
|
|
972
|
-
|
|
972
|
+
6866,
|
|
973
973
|
"Removed breakpoint, line {0}, file {1}",
|
|
974
974
|
bp.lineNumber,
|
|
975
975
|
bp.uri.fsPath
|
|
@@ -18,15 +18,15 @@ import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscod
|
|
|
18
18
|
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
19
19
|
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
20
20
|
import { IPaneCompositePartService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
|
|
21
|
-
import { LiveTestResult } from "@codingame/monaco-vscode-
|
|
21
|
+
import { LiveTestResult } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResult";
|
|
22
22
|
import { ITestResultService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResultService.service";
|
|
23
23
|
import { ITestService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service";
|
|
24
24
|
import { AdapterEndEvent, IBreakpoint, IConfig, IDataBreakpoint, IDataBreakpointInfoResponse, IDebugLocationReferenced, IDebugSession, IDebugSessionOptions, IDebugger, IExceptionBreakpoint, IExceptionInfo, IFunctionBreakpoint, IInstructionBreakpoint, IMemoryRegion, IRawModelUpdate, IRawStoppedDetails, IReplElement, IStackFrame, IThread, LoadedSourceEvent, State } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
25
25
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
26
26
|
import { DebugCompoundRoot } from "../common/debugCompoundRoot.js";
|
|
27
|
-
import { DebugModel, Thread } from "@codingame/monaco-vscode-
|
|
28
|
-
import { Source } from "@codingame/monaco-vscode-
|
|
29
|
-
import { INewReplElementData } from "@codingame/monaco-vscode-
|
|
27
|
+
import { DebugModel, Thread } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugModel";
|
|
28
|
+
import { Source } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugSource";
|
|
29
|
+
import { INewReplElementData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/replModel";
|
|
30
30
|
import { RawDebugSession } from "./rawDebugSession.js";
|
|
31
31
|
export declare class DebugSession implements IDebugSession {
|
|
32
32
|
private id;
|