@codingame/monaco-vscode-debug-service-override 16.1.1 → 17.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 +17 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +29 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +130 -112
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +13 -13
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +28 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +54 -54
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +23 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +48 -11
- 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.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- 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 +6 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -30,9 +30,9 @@ var TaskRunResult;
|
|
|
30
30
|
TaskRunResult[TaskRunResult["Success"] = 1] = "Success";
|
|
31
31
|
})(TaskRunResult || (TaskRunResult = {}));
|
|
32
32
|
const DEBUG_TASK_ERROR_CHOICE_KEY = 'debug.taskerrorchoice';
|
|
33
|
-
const ABORT_LABEL = ( localize(
|
|
34
|
-
const DEBUG_ANYWAY_LABEL = ( localize(
|
|
35
|
-
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(
|
|
33
|
+
const ABORT_LABEL = ( localize(5858, "Abort"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL = ( localize(5859, "&&Debug Anyway"));
|
|
35
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(5860, "Debug Anyway"));
|
|
36
36
|
let DebugTaskRunner = class DebugTaskRunner {
|
|
37
37
|
constructor(taskService, markerService, configurationService, viewsService, dialogService, storageService, commandService, progressService) {
|
|
38
38
|
this.taskService = taskService;
|
|
@@ -74,17 +74,17 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
74
74
|
}
|
|
75
75
|
const taskLabel = typeof taskId === 'string' ? taskId : taskId ? taskId.name : '';
|
|
76
76
|
const message = errorCount > 1
|
|
77
|
-
? ( localize(
|
|
77
|
+
? ( localize(5861, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
|
|
78
78
|
: errorCount === 1
|
|
79
|
-
? ( localize(
|
|
79
|
+
? ( localize(5862, "Error exists after running preLaunchTask '{0}'.", taskLabel))
|
|
80
80
|
: taskSummary && typeof taskSummary.exitCode === 'number'
|
|
81
81
|
? ( localize(
|
|
82
|
-
|
|
82
|
+
5863,
|
|
83
83
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
84
84
|
taskLabel,
|
|
85
85
|
taskSummary.exitCode
|
|
86
86
|
))
|
|
87
|
-
: ( localize(
|
|
87
|
+
: ( localize(5864, "The preLaunchTask '{0}' terminated.", taskLabel));
|
|
88
88
|
let DebugChoice;
|
|
89
89
|
(function (DebugChoice) {
|
|
90
90
|
DebugChoice[DebugChoice["DebugAnyway"] = 1] = "DebugAnyway";
|
|
@@ -100,7 +100,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
100
100
|
run: () => DebugChoice.DebugAnyway
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
label: ( localize(
|
|
103
|
+
label: ( localize(5865, "&&Show Errors")),
|
|
104
104
|
run: () => DebugChoice.ShowErrors
|
|
105
105
|
}
|
|
106
106
|
],
|
|
@@ -109,7 +109,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
109
109
|
run: () => DebugChoice.Cancel
|
|
110
110
|
},
|
|
111
111
|
checkbox: {
|
|
112
|
-
label: ( localize(
|
|
112
|
+
label: ( localize(5866, "Remember my choice in user settings")),
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
const debugAnyway = result === DebugChoice.DebugAnyway;
|
|
@@ -145,7 +145,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
145
145
|
message: err.message,
|
|
146
146
|
buttons: [
|
|
147
147
|
{
|
|
148
|
-
label: ( localize(
|
|
148
|
+
label: ( localize(5859, "&&Debug Anyway")),
|
|
149
149
|
run: () => DebugChoice.DebugAnyway
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -157,7 +157,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
157
157
|
run: () => DebugChoice.Cancel
|
|
158
158
|
},
|
|
159
159
|
checkbox: {
|
|
160
|
-
label: ( localize(
|
|
160
|
+
label: ( localize(5867, "Remember my choice for this task"))
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
choice = result;
|
|
@@ -178,7 +178,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
178
178
|
}
|
|
179
179
|
if (!root) {
|
|
180
180
|
return Promise.reject(( new Error(( localize(
|
|
181
|
-
|
|
181
|
+
5868,
|
|
182
182
|
"Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
|
|
183
183
|
typeof taskId === 'string' ? taskId : taskId.type
|
|
184
184
|
)))));
|
|
@@ -186,8 +186,8 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
186
186
|
const task = await this.taskService.getTask(root, taskId);
|
|
187
187
|
if (!task) {
|
|
188
188
|
const errorMessage = typeof taskId === 'string'
|
|
189
|
-
? ( localize(
|
|
190
|
-
: ( localize(
|
|
189
|
+
? ( localize(5869, "Could not find the task '{0}'.", taskId))
|
|
190
|
+
: ( localize(5870, "Could not find the specified task."));
|
|
191
191
|
return Promise.reject(createErrorWithActions(errorMessage, [( new Action(
|
|
192
192
|
DEBUG_CONFIGURE_COMMAND_ID,
|
|
193
193
|
DEBUG_CONFIGURE_LABEL,
|
|
@@ -245,7 +245,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
245
245
|
store.add(disposableTimeout(() => {
|
|
246
246
|
if (!taskStarted) {
|
|
247
247
|
const errorMessage = ( localize(
|
|
248
|
-
|
|
248
|
+
5871,
|
|
249
249
|
"The task '{0}' has not exited and doesn't have a 'problemMatcher' defined. Make sure to define a problem matcher for watch tasks.",
|
|
250
250
|
typeof taskId === 'string' ? taskId : JSON.stringify(taskId)
|
|
251
251
|
));
|
|
@@ -256,14 +256,14 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
256
256
|
if (!hideSlowPreLaunchWarning) {
|
|
257
257
|
store.add(disposableTimeout(() => {
|
|
258
258
|
const message = ( localize(
|
|
259
|
-
|
|
259
|
+
5872,
|
|
260
260
|
"Waiting for preLaunchTask '{0}'...",
|
|
261
261
|
task.configurationProperties.name
|
|
262
262
|
));
|
|
263
263
|
const buttons = [DEBUG_ANYWAY_LABEL_NO_MEMO, ABORT_LABEL];
|
|
264
264
|
const canConfigure = task instanceof CustomTask || task instanceof ConfiguringTask;
|
|
265
265
|
if (canConfigure) {
|
|
266
|
-
buttons.splice(1, 0, ( localize(
|
|
266
|
+
buttons.splice(1, 0, ( localize(5873, "Configure Task")));
|
|
267
267
|
}
|
|
268
268
|
this.progressService.withProgress({ location: ProgressLocation.Notification, title: message, buttons }, () => result.catch(() => { }), (choice) => {
|
|
269
269
|
if (choice === undefined) ;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IActionViewItem } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar";
|
|
2
2
|
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions";
|
|
4
|
-
import { IDropdownWithPrimaryActionViewItemOptions } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IDropdownWithPrimaryActionViewItemOptions } from "@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common/vscode/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem";
|
|
5
5
|
import { MenuItemAction } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
6
6
|
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
7
7
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
@@ -15,7 +15,7 @@ import { DisposableStore, MutableDisposable, markAsSingleton, dispose } from '@c
|
|
|
15
15
|
import { platform, Platform } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
16
16
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
17
17
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
18
|
-
import { DropdownWithPrimaryActionViewItem } from '@codingame/monaco-vscode-
|
|
18
|
+
import { DropdownWithPrimaryActionViewItem } from '@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common/vscode/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem';
|
|
19
19
|
import { createActionViewItem, getFlatActionBarActions } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
20
20
|
import { MenuId, MenuRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
21
21
|
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
|
@@ -41,14 +41,14 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/sear
|
|
|
41
41
|
import { Themable } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService';
|
|
42
42
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
43
43
|
import { getWindowControlsStyle, WindowControlsStyle } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
|
|
44
|
-
import { LayoutSettings, Parts, EditorTabsMode } from '@codingame/monaco-vscode-
|
|
44
|
+
import { LayoutSettings, Parts, EditorTabsMode } from '@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
45
45
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
46
46
|
import { State, VIEWLET_ID, CONTEXT_DEBUG_STATE, CONTEXT_IN_DEBUG_MODE, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_STEP_BACK_SUPPORTED, CONTEXT_MULTI_SESSION_DEBUG, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
47
47
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
48
48
|
import { FocusSessionActionViewItem } from './debugActionViewItems.js';
|
|
49
|
-
import { debugToolBarBackground, debugToolBarBorder } from '@codingame/monaco-vscode-
|
|
49
|
+
import { debugToolBarBackground, debugToolBarBorder } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugColors';
|
|
50
50
|
import { FOCUS_SESSION_ID, STOP_ID, DISCONNECT_ID, CONTINUE_ID, CONTINUE_LABEL, PAUSE_ID, PAUSE_LABEL, STOP_LABEL, DISCONNECT_LABEL, STEP_OVER_ID, STEP_OVER_LABEL, STEP_INTO_ID, STEP_INTO_LABEL, STEP_OUT_ID, STEP_OUT_LABEL, RESTART_SESSION_ID, RESTART_LABEL, STEP_BACK_ID, REVERSE_CONTINUE_ID, FOCUS_SESSION_LABEL, DISCONNECT_AND_SUSPEND_LABEL, DISCONNECT_AND_SUSPEND_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
51
|
-
import { debugGripper, debugContinue, debugPause, debugStop, debugDisconnect, debugStepOver, debugStepInto, debugStepOut, debugRestart, debugStepBack, debugReverseContinue } from '@codingame/monaco-vscode-
|
|
51
|
+
import { debugGripper, debugContinue, debugPause, debugStop, debugDisconnect, debugStepOver, debugStepInto, debugStepOut, debugRestart, debugStepBack, debugReverseContinue } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
52
52
|
import * as debugToolBar from './media/debugToolBar.css';
|
|
53
53
|
|
|
54
54
|
registerCss(debugToolBar);
|
|
@@ -312,7 +312,7 @@ function createDisconnectMenuItemAction(action, disposables, accessor, options)
|
|
|
312
312
|
if (!secondary.length) {
|
|
313
313
|
return undefined;
|
|
314
314
|
}
|
|
315
|
-
const dropdownAction = disposables.add(( new Action('notebook.moreRunActions', ( localize(
|
|
315
|
+
const dropdownAction = disposables.add(( new Action('notebook.moreRunActions', ( localize(5874, "More...")), 'codicon-chevron-down', true)));
|
|
316
316
|
const item = instantiationService.createInstance(DropdownWithPrimaryActionViewItem, action, dropdownAction, secondary, 'debug-stop-actions', options);
|
|
317
317
|
return item;
|
|
318
318
|
}
|
|
@@ -370,8 +370,8 @@ registerDebugToolBarItem(STEP_OVER_ID, STEP_OVER_LABEL, 20, debugStepOver, undef
|
|
|
370
370
|
registerDebugToolBarItem(STEP_INTO_ID, STEP_INTO_LABEL, 30, debugStepInto, undefined, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
371
371
|
registerDebugToolBarItem(STEP_OUT_ID, STEP_OUT_LABEL, 40, debugStepOut, undefined, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
372
372
|
registerDebugToolBarItem(RESTART_SESSION_ID, RESTART_LABEL, 60, debugRestart);
|
|
373
|
-
registerDebugToolBarItem(STEP_BACK_ID, ( localize(
|
|
374
|
-
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(
|
|
373
|
+
registerDebugToolBarItem(STEP_BACK_ID, ( localize(5875, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
374
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(5876, "Reverse")), 55, debugReverseContinue, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
375
375
|
registerDebugToolBarItem(FOCUS_SESSION_ID, FOCUS_SESSION_LABEL, 100, Codicon.listTree, ( ContextKeyExpr.and(CONTEXT_MULTI_SESSION_DEBUG, ( CONTEXT_TOOLBAR_COMMAND_CENTER.negate()))));
|
|
376
376
|
MenuRegistry.appendMenuItem(MenuId.DebugToolBarStop, {
|
|
377
377
|
group: 'navigation',
|
|
@@ -23,7 +23,7 @@ import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
23
23
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
24
24
|
import { StartDebugActionViewItem, FocusSessionActionViewItem } from './debugActionViewItems.js';
|
|
25
25
|
import { DEBUG_START_COMMAND_ID, FOCUS_SESSION_ID, STOP_ID, DISCONNECT_ID, DEBUG_START_LABEL, DEBUG_CONFIGURE_LABEL, DEBUG_CONFIGURE_COMMAND_ID, SELECT_AND_START_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
26
|
-
import { debugConfigure } from '@codingame/monaco-vscode-
|
|
26
|
+
import { debugConfigure } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
27
27
|
import { createDisconnectMenuItemAction } from './debugToolBar.js';
|
|
28
28
|
import { WelcomeView } from './welcomeView.js';
|
|
29
29
|
import { VIEWLET_ID, CONTEXT_DEBUG_UX_KEY, State, BREAKPOINTS_VIEW_ID, CONTEXT_DEBUG_STATE, getStateLabel, CONTEXT_DEBUG_UX, CONTEXT_DEBUGGERS_AVAILABLE, EDITOR_CONTRIBUTION_ID, REPL_VIEW_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
@@ -171,10 +171,10 @@ registerAction2(class extends Action2 {
|
|
|
171
171
|
title: {
|
|
172
172
|
value: DEBUG_CONFIGURE_LABEL,
|
|
173
173
|
original: 'Open \'launch.json\'',
|
|
174
|
-
mnemonicTitle: ( localize(
|
|
174
|
+
mnemonicTitle: ( localize(5877, "Open &&Configurations"))
|
|
175
175
|
},
|
|
176
176
|
metadata: {
|
|
177
|
-
description: ( localize2(
|
|
177
|
+
description: ( localize2(5878, 'Opens the file used to configure how your program is debugged'))
|
|
178
178
|
},
|
|
179
179
|
f1: true,
|
|
180
180
|
icon: debugConfigure,
|
|
@@ -214,7 +214,7 @@ registerAction2(class extends Action2 {
|
|
|
214
214
|
const picked = await quickInputService.pick(picks, {
|
|
215
215
|
activeItem: picks[0],
|
|
216
216
|
placeHolder: ( localize(
|
|
217
|
-
|
|
217
|
+
5879,
|
|
218
218
|
"Select a workspace folder to create a launch.json file in or add it to the workspace config file"
|
|
219
219
|
))
|
|
220
220
|
});
|
|
@@ -238,7 +238,7 @@ registerAction2(class extends Action2 {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: 'debug.toggleReplIgnoreFocus',
|
|
241
|
-
title: ( localize(
|
|
241
|
+
title: ( localize(5880, "Debug Console")),
|
|
242
242
|
toggled: ( ContextKeyExpr.has(`view.${REPL_VIEW_ID}.visible`)),
|
|
243
243
|
menu: [{
|
|
244
244
|
id: ViewsSubMenu,
|
|
@@ -263,7 +263,7 @@ MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
|
263
263
|
order: 10,
|
|
264
264
|
command: {
|
|
265
265
|
id: SELECT_AND_START_ID,
|
|
266
|
-
title: ( localize(
|
|
266
|
+
title: ( localize(5881, "Start Additional Session")),
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
|
|
@@ -6,16 +6,30 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
6
6
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
7
7
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
8
8
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
9
|
-
import { EditorPane } from "@codingame/monaco-vscode-
|
|
9
|
+
import { EditorPane } from "@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
10
10
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
11
11
|
import { IDebugSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
12
12
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
13
13
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
14
14
|
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
15
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
16
|
+
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
17
|
+
export interface IDisassembledInstructionEntry {
|
|
18
|
+
allowBreakpoint: boolean;
|
|
19
|
+
isBreakpointSet: boolean;
|
|
20
|
+
isBreakpointEnabled: boolean;
|
|
21
|
+
instructionReference: string;
|
|
22
|
+
instructionReferenceOffset: number;
|
|
23
|
+
instructionOffset: number;
|
|
24
|
+
showSourceLocation?: boolean;
|
|
25
|
+
instruction: DebugProtocol.DisassembledInstruction;
|
|
26
|
+
address: bigint;
|
|
27
|
+
}
|
|
15
28
|
export declare class DisassemblyView extends EditorPane {
|
|
16
29
|
private readonly _configurationService;
|
|
17
30
|
private readonly _instantiationService;
|
|
18
31
|
private readonly _debugService;
|
|
32
|
+
private readonly _contextMenuService;
|
|
19
33
|
private static readonly NUM_INSTRUCTIONS_TO_LOAD;
|
|
20
34
|
private _fontInfo;
|
|
21
35
|
private _disassembledInstructions;
|
|
@@ -25,7 +39,8 @@ export declare class DisassemblyView extends EditorPane {
|
|
|
25
39
|
private _enableSourceCodeRender;
|
|
26
40
|
private _loadingLock;
|
|
27
41
|
private readonly _referenceToMemoryAddress;
|
|
28
|
-
|
|
42
|
+
private menu;
|
|
43
|
+
constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService, _configurationService: IConfigurationService, _instantiationService: IInstantiationService, _debugService: IDebugService, _contextMenuService: IContextMenuService, menuService: IMenuService, contextKeyService: IContextKeyService);
|
|
29
44
|
get fontInfo(): BareFontInfo;
|
|
30
45
|
private createFontInfo;
|
|
31
46
|
get currentInstructionAddresses(): (bigint | undefined)[];
|
|
@@ -41,6 +56,11 @@ export declare class DisassemblyView extends EditorPane {
|
|
|
41
56
|
offset: number;
|
|
42
57
|
address: bigint;
|
|
43
58
|
} | undefined;
|
|
59
|
+
getAddressAndOffset(element: IDisassembledInstructionEntry): {
|
|
60
|
+
reference: string;
|
|
61
|
+
offset: number;
|
|
62
|
+
address: bigint;
|
|
63
|
+
};
|
|
44
64
|
protected createEditor(parent: HTMLElement): void;
|
|
45
65
|
layout(dimension: Dimension): void;
|
|
46
66
|
goToInstructionAndOffset(instructionReference: string, offset: number, focus?: boolean): Promise<void>;
|
|
@@ -54,6 +74,7 @@ export declare class DisassemblyView extends EditorPane {
|
|
|
54
74
|
private getIndexFromAddress;
|
|
55
75
|
private reloadDisassembly;
|
|
56
76
|
private clear;
|
|
77
|
+
private onContextMenu;
|
|
57
78
|
}
|
|
58
79
|
export declare class DisassemblyViewContribution implements IWorkbenchContribution {
|
|
59
80
|
private readonly _onDidActiveEditorChangeListener;
|
|
@@ -36,15 +36,22 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quic
|
|
|
36
36
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
37
37
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
38
38
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
39
|
-
import { EditorPane } from '@codingame/monaco-vscode-
|
|
39
|
+
import { EditorPane } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
40
40
|
import { topStackFrameColor, focusedStackFrameColor } from '@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
41
|
-
import { breakpoint, debugBreakpointHint, debugStackframe, debugStackframeFocused } from '@codingame/monaco-vscode-
|
|
41
|
+
import { breakpoint, debugBreakpointHint, debugStackframe, debugStackframeFocused } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
42
42
|
import { DISASSEMBLY_VIEW_ID, State, CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
43
43
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
44
44
|
import { InstructionBreakpoint } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
45
45
|
import { getUriFromSource } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugSource';
|
|
46
46
|
import { sourcesEqual, isUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
47
47
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
48
|
+
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
49
|
+
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
50
|
+
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
|
51
|
+
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
52
|
+
import { COPY_ADDRESS_ID, COPY_ADDRESS_LABEL } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
53
|
+
import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
54
|
+
import { getFlatContextMenuActions } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
48
55
|
|
|
49
56
|
var DisassemblyView_1, BreakpointRenderer_1, InstructionRenderer_1;
|
|
50
57
|
const disassemblyNotAvailable = {
|
|
@@ -57,21 +64,24 @@ const disassemblyNotAvailable = {
|
|
|
57
64
|
address: 0n,
|
|
58
65
|
instruction: {
|
|
59
66
|
address: '-1',
|
|
60
|
-
instruction: ( localize(
|
|
67
|
+
instruction: ( localize(5882, "Disassembly not available."))
|
|
61
68
|
},
|
|
62
69
|
};
|
|
63
70
|
let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
64
71
|
static { DisassemblyView_1 = this; }
|
|
65
72
|
static { this.NUM_INSTRUCTIONS_TO_LOAD = 50; }
|
|
66
|
-
constructor(group, telemetryService, themeService, storageService, _configurationService, _instantiationService, _debugService) {
|
|
73
|
+
constructor(group, telemetryService, themeService, storageService, _configurationService, _instantiationService, _debugService, _contextMenuService, menuService, contextKeyService) {
|
|
67
74
|
super(DISASSEMBLY_VIEW_ID, group, telemetryService, themeService, storageService);
|
|
68
75
|
this._configurationService = _configurationService;
|
|
69
76
|
this._instantiationService = _instantiationService;
|
|
70
77
|
this._debugService = _debugService;
|
|
78
|
+
this._contextMenuService = _contextMenuService;
|
|
71
79
|
this._instructionBpList = [];
|
|
72
80
|
this._enableSourceCodeRender = true;
|
|
73
81
|
this._loadingLock = false;
|
|
74
82
|
this._referenceToMemoryAddress = ( new Map());
|
|
83
|
+
this.menu = menuService.createMenu(MenuId.DebugDisassemblyContext, contextKeyService);
|
|
84
|
+
this._register(this.menu);
|
|
75
85
|
this._disassembledInstructions = undefined;
|
|
76
86
|
this._onDidChangeStackFrame = this._register(( new Emitter({ leakWarningThreshold: 1000 })));
|
|
77
87
|
this._previousDebuggingState = _debugService.state;
|
|
@@ -133,6 +143,9 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
133
143
|
if (!element) {
|
|
134
144
|
return undefined;
|
|
135
145
|
}
|
|
146
|
+
return this.getAddressAndOffset(element);
|
|
147
|
+
}
|
|
148
|
+
getAddressAndOffset(element) {
|
|
136
149
|
const reference = element.instructionReference;
|
|
137
150
|
const offset = Number(element.address - this.getReferenceAddress(reference));
|
|
138
151
|
return { reference, offset, address: element.address };
|
|
@@ -169,7 +182,7 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
169
182
|
project(row) { return row; }
|
|
170
183
|
},
|
|
171
184
|
{
|
|
172
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(5883, "instructions")),
|
|
173
186
|
tooltip: '',
|
|
174
187
|
weight: 0.3,
|
|
175
188
|
templateId: InstructionRenderer.TEMPLATE_ID,
|
|
@@ -213,6 +226,7 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
213
226
|
this.scrollDown_LoadDisassembledInstructions(DisassemblyView_1.NUM_INSTRUCTIONS_TO_LOAD).then(() => { this._loadingLock = false; });
|
|
214
227
|
}
|
|
215
228
|
}));
|
|
229
|
+
this._register(this._disassembledInstructions.onContextMenu(e => this.onContextMenu(e)));
|
|
216
230
|
this._register(this._debugService.getViewModel().onDidFocusStackFrame(({ stackFrame }) => {
|
|
217
231
|
if (this._disassembledInstructions && stackFrame?.instructionPointerReference) {
|
|
218
232
|
this.goToInstructionAndOffset(stackFrame.instructionPointerReference, 0);
|
|
@@ -480,6 +494,14 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
480
494
|
this._referenceToMemoryAddress.clear();
|
|
481
495
|
this._disassembledInstructions?.splice(0, this._disassembledInstructions.length, [disassemblyNotAvailable]);
|
|
482
496
|
}
|
|
497
|
+
onContextMenu(e) {
|
|
498
|
+
const actions = getFlatContextMenuActions(this.menu.getActions({ shouldForwardArgs: true }));
|
|
499
|
+
this._contextMenuService.showContextMenu({
|
|
500
|
+
getAnchor: () => e.anchor,
|
|
501
|
+
getActions: () => actions,
|
|
502
|
+
getActionsContext: () => e.element
|
|
503
|
+
});
|
|
504
|
+
}
|
|
483
505
|
};
|
|
484
506
|
DisassemblyView = DisassemblyView_1 = ( __decorate([
|
|
485
507
|
( __param(1, ITelemetryService)),
|
|
@@ -487,7 +509,10 @@ DisassemblyView = DisassemblyView_1 = ( __decorate([
|
|
|
487
509
|
( __param(3, IStorageService)),
|
|
488
510
|
( __param(4, IConfigurationService)),
|
|
489
511
|
( __param(5, IInstantiationService)),
|
|
490
|
-
( __param(6, IDebugService))
|
|
512
|
+
( __param(6, IDebugService)),
|
|
513
|
+
( __param(7, IContextMenuService)),
|
|
514
|
+
( __param(8, IMenuService)),
|
|
515
|
+
( __param(9, IContextKeyService))
|
|
491
516
|
], DisassemblyView));
|
|
492
517
|
let BreakpointRenderer = class BreakpointRenderer {
|
|
493
518
|
static { BreakpointRenderer_1 = this; }
|
|
@@ -704,7 +729,7 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
704
729
|
};
|
|
705
730
|
this.editorService.openEditor({
|
|
706
731
|
resource: sourceURI,
|
|
707
|
-
description: ( localize(
|
|
732
|
+
description: ( localize(5884, "from disassembly")),
|
|
708
733
|
options: {
|
|
709
734
|
preserveFocus: false,
|
|
710
735
|
selection: selection,
|
|
@@ -739,18 +764,18 @@ InstructionRenderer = InstructionRenderer_1 = ( __decorate([
|
|
|
739
764
|
], InstructionRenderer));
|
|
740
765
|
class AccessibilityProvider {
|
|
741
766
|
getWidgetAriaLabel() {
|
|
742
|
-
return localize(
|
|
767
|
+
return localize(5885, "Disassembly View");
|
|
743
768
|
}
|
|
744
769
|
getAriaLabel(element) {
|
|
745
770
|
let label = '';
|
|
746
771
|
const instruction = element.instruction;
|
|
747
772
|
if (instruction.address !== '-1') {
|
|
748
|
-
label += `${( localize(
|
|
773
|
+
label += `${( localize(5886, "Address"))}: ${instruction.address}`;
|
|
749
774
|
}
|
|
750
775
|
if (instruction.instructionBytes) {
|
|
751
|
-
label += `, ${( localize(
|
|
776
|
+
label += `, ${( localize(5887, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
752
777
|
}
|
|
753
|
-
label += `, ${( localize(
|
|
778
|
+
label += `, ${( localize(5888, "Instruction"))}: ${instruction.instruction}`;
|
|
754
779
|
return label;
|
|
755
780
|
}
|
|
756
781
|
}
|
|
@@ -789,5 +814,17 @@ DisassemblyViewContribution = ( __decorate([
|
|
|
789
814
|
( __param(1, IDebugService)),
|
|
790
815
|
( __param(2, IContextKeyService))
|
|
791
816
|
], DisassemblyViewContribution));
|
|
817
|
+
CommandsRegistry.registerCommand({
|
|
818
|
+
metadata: {
|
|
819
|
+
description: COPY_ADDRESS_LABEL,
|
|
820
|
+
},
|
|
821
|
+
id: COPY_ADDRESS_ID,
|
|
822
|
+
handler: async (accessor, entry) => {
|
|
823
|
+
if (entry?.instruction?.address) {
|
|
824
|
+
const clipboardService = accessor.get(IClipboardService);
|
|
825
|
+
clipboardService.writeText(entry.instruction.address);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
});
|
|
792
829
|
|
|
793
830
|
export { DisassemblyView, DisassemblyViewContribution };
|
|
@@ -5,7 +5,7 @@ import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/fi
|
|
|
5
5
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
6
6
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
7
7
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
8
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
8
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
9
9
|
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
10
10
|
import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
11
11
|
export declare class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient implements IExtensionHostDebugService {
|
|
@@ -12,7 +12,7 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
12
12
|
import { isFolderToOpen, isWorkspaceToOpen } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
|
|
13
13
|
import { toWorkspaceIdentifier, isSingleFolderWorkspaceIdentifier, isWorkspaceIdentifier, hasWorkspaceFileExtension } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
14
14
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
15
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
15
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
16
16
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
17
17
|
import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
18
18
|
|
|
@@ -26,7 +26,7 @@ import { WorkbenchCompressibleObjectTree } from '@codingame/monaco-vscode-api/vs
|
|
|
26
26
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
27
27
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
28
28
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
29
|
-
import { ResourceLabels } from '@codingame/monaco-vscode-
|
|
29
|
+
import { ResourceLabels } from '@codingame/monaco-vscode-bed2b49f-41ae-5ed2-b61a-1105500a3f8a-common/vscode/vs/workbench/browser/labels';
|
|
30
30
|
import { ViewPane, ViewAction } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
31
31
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
32
32
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -563,7 +563,7 @@ class LoadedScriptsRenderer {
|
|
|
563
563
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
564
564
|
}
|
|
565
565
|
else if (element instanceof SessionTreeItem) {
|
|
566
|
-
options.title = ( localize(
|
|
566
|
+
options.title = ( localize(5900, "Debug Session"));
|
|
567
567
|
options.hideIcon = true;
|
|
568
568
|
}
|
|
569
569
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -585,20 +585,20 @@ class LoadedScriptsRenderer {
|
|
|
585
585
|
}
|
|
586
586
|
class LoadedSciptsAccessibilityProvider {
|
|
587
587
|
getWidgetAriaLabel() {
|
|
588
|
-
return localize(
|
|
588
|
+
return localize(5901, "Debug Loaded Scripts");
|
|
589
589
|
}
|
|
590
590
|
getAriaLabel(element) {
|
|
591
591
|
if (element instanceof RootFolderTreeItem) {
|
|
592
|
-
return localize(
|
|
592
|
+
return localize(5902, "Workspace folder {0}, loaded script, debug", element.getLabel());
|
|
593
593
|
}
|
|
594
594
|
if (element instanceof SessionTreeItem) {
|
|
595
|
-
return localize(
|
|
595
|
+
return localize(5903, "Session {0}, loaded script, debug", element.getLabel());
|
|
596
596
|
}
|
|
597
597
|
if (element.hasChildren()) {
|
|
598
|
-
return localize(
|
|
598
|
+
return localize(5904, "Folder {0}, loaded script, debug", element.getLabel());
|
|
599
599
|
}
|
|
600
600
|
else {
|
|
601
|
-
return localize(
|
|
601
|
+
return localize(5905, "{0}, loaded script, debug", element.getLabel());
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -625,7 +625,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
625
625
|
super({
|
|
626
626
|
id: 'loadedScripts.collapse',
|
|
627
627
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
628
|
-
title: ( localize(
|
|
628
|
+
title: ( localize(5906, "Collapse All")),
|
|
629
629
|
f1: false,
|
|
630
630
|
icon: Codicon.collapseAll,
|
|
631
631
|
menu: {
|
|
@@ -194,7 +194,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
194
194
|
}
|
|
195
195
|
async start() {
|
|
196
196
|
if (!this.debugAdapter) {
|
|
197
|
-
return Promise.reject(( new Error(( localize(
|
|
197
|
+
return Promise.reject(( new Error(( localize(5907, "No debug adapter, can not start debug session.")))));
|
|
198
198
|
}
|
|
199
199
|
await this.debugAdapter.startSession();
|
|
200
200
|
this.startTime = ( new Date()).getTime();
|
|
@@ -518,10 +518,10 @@ let RawDebugSession = class RawDebugSession {
|
|
|
518
518
|
const { confirmed } = await this.dialogSerivce.confirm({
|
|
519
519
|
type: Severity.Warning,
|
|
520
520
|
message: ( localize(
|
|
521
|
-
|
|
521
|
+
5908,
|
|
522
522
|
"The debugger needs to open a new tab or window for the debuggee but the browser prevented this. You must give permission to continue."
|
|
523
523
|
)),
|
|
524
|
-
primaryButton: ( localize(
|
|
524
|
+
primaryButton: ( localize(5909, "&&Continue"))
|
|
525
525
|
});
|
|
526
526
|
if (confirmed) {
|
|
527
527
|
result = await this.launchVsCode(request.arguments);
|
|
@@ -621,7 +621,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
621
621
|
completeDispatch(undefined);
|
|
622
622
|
}
|
|
623
623
|
else {
|
|
624
|
-
errorDispatch(( new Error(( localize(
|
|
624
|
+
errorDispatch(( new Error(( localize(5910, "No debugger available found. Can not send '{0}'.", command)))));
|
|
625
625
|
}
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
@@ -654,7 +654,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
654
654
|
const userMessage = error ? formatPII(error.format, false, error.variables) : errorMessage;
|
|
655
655
|
const url = error?.url;
|
|
656
656
|
if (error && url) {
|
|
657
|
-
const label = error.urlLabel ? error.urlLabel : ( localize(
|
|
657
|
+
const label = error.urlLabel ? error.urlLabel : ( localize(5911, "More Info"));
|
|
658
658
|
const uri = ( URI.parse(url));
|
|
659
659
|
const actionId = uri.scheme === Schemas.command ? 'debug.moreInfo.command' : 'debug.moreInfo';
|
|
660
660
|
return createErrorWithActions(userMessage, [toAction({ id: actionId, label, run: () => this.openerService.open(uri, { allowCommands: true }) })]);
|