@codingame/monaco-vscode-debug-service-override 14.0.5 → 15.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/index.js +1 -1
- package/package.json +18 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +22 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +133 -133
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +8 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +6 -6
- 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 +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +5 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +23 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +44 -44
- 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 +2 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +14 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +11 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +6 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +36 -45
- 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.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +52 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +10 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +2 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +1 -1
- 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
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.d.ts +0 -64
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -758
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -419
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -116
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.d.ts +0 -79
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -730
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +0 -17
|
@@ -27,7 +27,7 @@ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
27
27
|
import { dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
28
28
|
import { ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
29
29
|
import { BaseActionViewItem, SelectActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
30
|
-
import { debugStart } from '@codingame/monaco-vscode-
|
|
30
|
+
import { debugStart } from '@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
31
31
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
32
32
|
import { defaultSelectBoxStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
33
33
|
import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
@@ -60,7 +60,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
60
60
|
-1,
|
|
61
61
|
contextViewService,
|
|
62
62
|
defaultSelectBoxStyles,
|
|
63
|
-
{ ariaLabel: ( localize(
|
|
63
|
+
{ ariaLabel: ( localize(5422, 'Debug Launch Configurations')) }
|
|
64
64
|
));
|
|
65
65
|
this.selectBox.setFocusable(false);
|
|
66
66
|
this.toDispose.push(this.selectBox);
|
|
@@ -130,6 +130,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
130
130
|
this.start.tabIndex = 0;
|
|
131
131
|
this.start.focus();
|
|
132
132
|
event.stopPropagation();
|
|
133
|
+
event.preventDefault();
|
|
133
134
|
}
|
|
134
135
|
}));
|
|
135
136
|
this.container.style.border = `1px solid ${asCssVariable(selectBorder)}`;
|
|
@@ -218,7 +219,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
218
219
|
});
|
|
219
220
|
});
|
|
220
221
|
if (this.debugOptions.length === 0) {
|
|
221
|
-
this.debugOptions.push({ label: ( localize(
|
|
222
|
+
this.debugOptions.push({ label: ( localize(5423, "No Configurations")), handler: async () => false });
|
|
222
223
|
}
|
|
223
224
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
224
225
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -236,7 +237,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
236
237
|
});
|
|
237
238
|
});
|
|
238
239
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
239
|
-
const label = inWorkspace ? ( localize(
|
|
240
|
+
const label = inWorkspace ? ( localize(5424, "Add Config ({0})...", l.name)) : ( localize(5425, "Add Configuration..."));
|
|
240
241
|
this.debugOptions.push({
|
|
241
242
|
label, handler: async () => {
|
|
242
243
|
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( l.uri.toString()));
|
|
@@ -256,11 +257,11 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
256
257
|
keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp, this.contextKeyService)?.getLabel() ?? undefined;
|
|
257
258
|
}
|
|
258
259
|
if (keybinding) {
|
|
259
|
-
ariaLabel = ( localize(
|
|
260
|
+
ariaLabel = ( localize(5426, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
260
261
|
}
|
|
261
262
|
else {
|
|
262
263
|
ariaLabel = ( localize(
|
|
263
|
-
|
|
264
|
+
5427,
|
|
264
265
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
265
266
|
ariaLabel
|
|
266
267
|
));
|
|
@@ -280,7 +281,7 @@ StartDebugActionViewItem = StartDebugActionViewItem_1 = ( __decorate([
|
|
|
280
281
|
], StartDebugActionViewItem));
|
|
281
282
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
282
283
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
283
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(
|
|
284
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(5428, 'Debug Session')) });
|
|
284
285
|
this.debugService = debugService;
|
|
285
286
|
this.configurationService = configurationService;
|
|
286
287
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
2
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
3
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
4
4
|
import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model";
|
|
5
5
|
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
6
6
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
@@ -6,7 +6,7 @@ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
6
6
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
7
7
|
import { equalsIgnoreCase } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
8
8
|
import { isCodeEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
|
|
9
|
-
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
9
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
10
10
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
11
|
import { MenuId, MenuItemAction } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
12
12
|
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
|
@@ -87,7 +87,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
87
87
|
delta.added.forEach(added => {
|
|
88
88
|
added.value.forEach(rawAdapter => {
|
|
89
89
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
90
|
-
added.collector.error(( localize(
|
|
90
|
+
added.collector.error(( localize(5429, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
91
91
|
}
|
|
92
92
|
if (rawAdapter.type !== '*') {
|
|
93
93
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -137,7 +137,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
137
137
|
'name': {
|
|
138
138
|
type: 'string',
|
|
139
139
|
description: ( localize(
|
|
140
|
-
|
|
140
|
+
5430,
|
|
141
141
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
142
142
|
)),
|
|
143
143
|
default: 'Launch'
|
|
@@ -145,7 +145,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
145
145
|
'debugServer': {
|
|
146
146
|
type: 'number',
|
|
147
147
|
description: ( localize(
|
|
148
|
-
|
|
148
|
+
5431,
|
|
149
149
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
150
150
|
)),
|
|
151
151
|
default: 4711
|
|
@@ -156,7 +156,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
156
156
|
}],
|
|
157
157
|
default: '',
|
|
158
158
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
159
|
-
description: ( localize(
|
|
159
|
+
description: ( localize(5432, "Task to run before debug session starts.")),
|
|
160
160
|
examples: this.taskLabels,
|
|
161
161
|
},
|
|
162
162
|
'postDebugTask': {
|
|
@@ -165,7 +165,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
165
165
|
}],
|
|
166
166
|
default: '',
|
|
167
167
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
168
|
-
description: ( localize(
|
|
168
|
+
description: ( localize(5433, "Task to run after debug session ends.")),
|
|
169
169
|
examples: this.taskLabels,
|
|
170
170
|
},
|
|
171
171
|
'presentation': presentationSchema,
|
|
@@ -173,7 +173,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
173
173
|
'suppressMultipleSessionWarning': {
|
|
174
174
|
type: 'boolean',
|
|
175
175
|
description: ( localize(
|
|
176
|
-
|
|
176
|
+
5434,
|
|
177
177
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
178
178
|
)),
|
|
179
179
|
default: true
|
|
@@ -327,11 +327,11 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
327
327
|
const { confirmed } = await this.dialogService.confirm({
|
|
328
328
|
type: Severity.Warning,
|
|
329
329
|
message: ( localize(
|
|
330
|
-
|
|
330
|
+
5435,
|
|
331
331
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
332
332
|
languageLabel
|
|
333
333
|
)),
|
|
334
|
-
primaryButton: ( localize(
|
|
334
|
+
primaryButton: ( localize(5436, "&&Find {0} extension", languageLabel))
|
|
335
335
|
});
|
|
336
336
|
if (confirmed) {
|
|
337
337
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -358,7 +358,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
358
358
|
const picks = [];
|
|
359
359
|
const dynamic = await this.delegate.configurationManager().getDynamicProviders();
|
|
360
360
|
if (suggestedCandidates.length > 0) {
|
|
361
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
361
|
+
picks.push({ type: 'separator', label: ( localize(5437, "Suggested")) }, ...( suggestedCandidates.map(c => ({ label: c.label, pick: () => ({ debugger: c }) }))));
|
|
362
362
|
}
|
|
363
363
|
if (otherCandidates.length > 0) {
|
|
364
364
|
if (picks.length > 0) {
|
|
@@ -372,7 +372,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
372
372
|
}
|
|
373
373
|
for (const d of dynamic) {
|
|
374
374
|
picks.push({
|
|
375
|
-
label: ( localize(
|
|
375
|
+
label: ( localize(5438, "More {0} options...", d.label)),
|
|
376
376
|
pick: async () => {
|
|
377
377
|
const cfg = await d.pick();
|
|
378
378
|
if (!cfg) {
|
|
@@ -383,14 +383,14 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(
|
|
386
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(5439, "Install an extension for {0}...", languageLabel)) : ( localize(5440, "Install extension...")) });
|
|
387
387
|
const contributed = this.menuService.getMenuActions(MenuId.DebugCreateConfiguration, this.contextKeyService);
|
|
388
388
|
for (const [, action] of contributed) {
|
|
389
389
|
for (const item of action) {
|
|
390
390
|
picks.push(item);
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
const placeHolder = ( localize(
|
|
393
|
+
const placeHolder = ( localize(5441, "Select debugger"));
|
|
394
394
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder }).then(async (picked) => {
|
|
395
395
|
if (picked && 'pick' in picked && typeof picked.pick === 'function') {
|
|
396
396
|
return await picked.pick();
|
|
@@ -34,7 +34,7 @@ import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workben
|
|
|
34
34
|
import { CONTEXT_DEBUG_CONFIGURATION_TYPE, DebugConfigurationProviderTriggerKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
35
35
|
import { launchSchema } from '../common/debugSchemas.js';
|
|
36
36
|
import { getVisibleAndSorted } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
37
|
-
import { debugConfigure } from '@codingame/monaco-vscode-
|
|
37
|
+
import { debugConfigure } from '@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
38
38
|
|
|
39
39
|
const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
40
40
|
jsonRegistry.registerSchema(launchSchemaId, launchSchema);
|
|
@@ -186,7 +186,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
186
186
|
disposables.add(token);
|
|
187
187
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
188
188
|
input.busy = true;
|
|
189
|
-
input.placeholder = ( localize(
|
|
189
|
+
input.placeholder = ( localize(5488, "Select Launch Configuration"));
|
|
190
190
|
const chosenPromise = ( new Promise(resolve => {
|
|
191
191
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
192
192
|
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
@@ -230,7 +230,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
230
230
|
config,
|
|
231
231
|
buttons: [{
|
|
232
232
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
233
|
-
tooltip: ( localize(
|
|
233
|
+
tooltip: ( localize(5489, "Edit Debug Configuration in launch.json"))
|
|
234
234
|
}],
|
|
235
235
|
launch
|
|
236
236
|
})))));
|
|
@@ -548,7 +548,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
548
548
|
}
|
|
549
549
|
catch (error) {
|
|
550
550
|
throw ( new Error(( localize(
|
|
551
|
-
|
|
551
|
+
5490,
|
|
552
552
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
553
553
|
error.message
|
|
554
554
|
))));
|
|
@@ -602,7 +602,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
602
602
|
return this.contextService.getWorkspace().configuration;
|
|
603
603
|
}
|
|
604
604
|
get name() {
|
|
605
|
-
return localize(
|
|
605
|
+
return localize(5491, "workspace");
|
|
606
606
|
}
|
|
607
607
|
getConfig() {
|
|
608
608
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -646,7 +646,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
646
646
|
return this.preferencesService.userSettingsResource;
|
|
647
647
|
}
|
|
648
648
|
get name() {
|
|
649
|
-
return localize(
|
|
649
|
+
return localize(5492, "user settings");
|
|
650
650
|
}
|
|
651
651
|
get hidden() {
|
|
652
652
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
2
|
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
4
|
-
import { FastAndSlowPicks, IPickerQuickAccessItem, PickerQuickAccessProvider, Picks } from "@codingame/monaco-vscode-
|
|
4
|
+
import { FastAndSlowPicks, IPickerQuickAccessItem, PickerQuickAccessProvider, Picks } from "@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
5
5
|
import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
6
6
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
7
7
|
export declare class DebugConsoleQuickAccess extends PickerQuickAccessProvider<IPickerQuickAccessItem> {
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { matchesFuzzy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/filters';
|
|
4
4
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
5
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
6
|
-
import { PickerQuickAccessProvider } from '@codingame/monaco-vscode-
|
|
6
|
+
import { PickerQuickAccessProvider } from '@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
7
7
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
8
8
|
import { DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, SELECT_AND_START_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
9
9
|
import { REPL_VIEW_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
@@ -27,7 +27,7 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
27
27
|
if (debugConsolePicks.length > 0) {
|
|
28
28
|
debugConsolePicks.push({ type: 'separator' });
|
|
29
29
|
}
|
|
30
|
-
const createTerminalLabel = ( localize(
|
|
30
|
+
const createTerminalLabel = ( localize(5493, "Start a New Debug Session"));
|
|
31
31
|
debugConsolePicks.push({
|
|
32
32
|
label: `$(plus) ${createTerminalLabel}`,
|
|
33
33
|
ariaLabel: createTerminalLabel,
|
|
@@ -3,10 +3,10 @@ import { getDomNodePagePosition } from '@codingame/monaco-vscode-api/vscode/vs/b
|
|
|
3
3
|
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
4
4
|
import { KeyCode, KeyChord, KeyMod } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
5
5
|
import { EditorAction, registerEditorAction } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
6
|
-
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService';
|
|
6
|
+
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service';
|
|
7
7
|
import { Position } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position';
|
|
8
8
|
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
9
|
-
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures';
|
|
9
|
+
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service';
|
|
10
10
|
import { MessageController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/message/browser/messageController';
|
|
11
11
|
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
12
12
|
import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
@@ -19,7 +19,7 @@ import { PanelFocusContext } from '@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
|
19
19
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
20
20
|
import { openBreakpointSource } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
|
|
21
21
|
import { DisassemblyView } from './disassemblyView.js';
|
|
22
|
-
import { CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_DISASSEMBLY_VIEW_FOCUS, BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointWidgetContext,
|
|
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
25
|
import { DisassemblyViewInput } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
@@ -31,8 +31,8 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
31
31
|
super({
|
|
32
32
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
33
33
|
title: {
|
|
34
|
-
...( localize2(
|
|
35
|
-
mnemonicTitle: ( localize(
|
|
34
|
+
...( localize2(5494, "Debug: Toggle Breakpoint")),
|
|
35
|
+
mnemonicTitle: ( localize(5495, "Toggle &&Breakpoint")),
|
|
36
36
|
},
|
|
37
37
|
f1: true,
|
|
38
38
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -89,11 +89,11 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
92
|
-
label: ( localize2(
|
|
92
|
+
label: ( localize2(5496, "Debug: Add Conditional Breakpoint...")),
|
|
93
93
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
94
94
|
menuOpts: {
|
|
95
95
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
96
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(5497, "&&Conditional Breakpoint...")),
|
|
97
97
|
group: '1_breakpoints',
|
|
98
98
|
order: 1,
|
|
99
99
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -112,12 +112,12 @@ class LogPointAction extends EditorAction {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: 'editor.debug.action.addLogPoint',
|
|
115
|
-
label: ( localize2(
|
|
115
|
+
label: ( localize2(5498, "Debug: Add Logpoint...")),
|
|
116
116
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
117
117
|
menuOpts: [
|
|
118
118
|
{
|
|
119
119
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
120
|
-
title: ( localize(
|
|
120
|
+
title: ( localize(5499, "&&Logpoint...")),
|
|
121
121
|
group: '1_breakpoints',
|
|
122
122
|
order: 4,
|
|
123
123
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -137,13 +137,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
137
137
|
constructor() {
|
|
138
138
|
super({
|
|
139
139
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(5500, "Debug: Add Triggered Breakpoint...")),
|
|
141
141
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
142
142
|
alias: 'Debug: Triggered Breakpoint...',
|
|
143
143
|
menuOpts: [
|
|
144
144
|
{
|
|
145
145
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
146
|
-
title: ( localize(
|
|
146
|
+
title: ( localize(5501, "&&Triggered Breakpoint...")),
|
|
147
147
|
group: '1_breakpoints',
|
|
148
148
|
order: 4,
|
|
149
149
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -163,12 +163,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: 'editor.debug.action.editBreakpoint',
|
|
166
|
-
label: ( localize(
|
|
166
|
+
label: ( localize(5502, "Debug: Edit Breakpoint")),
|
|
167
167
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
168
168
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
169
169
|
menuOpts: {
|
|
170
170
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
171
|
-
title: ( localize(
|
|
171
|
+
title: ( localize(5503, "&&Edit Breakpoint")),
|
|
172
172
|
group: '1_breakpoints',
|
|
173
173
|
order: 1,
|
|
174
174
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -203,8 +203,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
203
203
|
super({
|
|
204
204
|
id: OpenDisassemblyViewAction.ID,
|
|
205
205
|
title: {
|
|
206
|
-
...( localize2(
|
|
207
|
-
mnemonicTitle: ( localize(
|
|
206
|
+
...( localize2(5504, "Open Disassembly View")),
|
|
207
|
+
mnemonicTitle: ( localize(5505, "&&DisassemblyView")),
|
|
208
208
|
},
|
|
209
209
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
210
210
|
menu: [
|
|
@@ -239,11 +239,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
239
239
|
super({
|
|
240
240
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
241
241
|
title: {
|
|
242
|
-
...( localize2(
|
|
243
|
-
mnemonicTitle: ( localize(
|
|
242
|
+
...( localize2(5506, "Toggle Source Code in Disassembly View")),
|
|
243
|
+
mnemonicTitle: ( localize(5507, "&&ToggleSource")),
|
|
244
244
|
},
|
|
245
245
|
metadata: {
|
|
246
|
-
description: ( localize2(
|
|
246
|
+
description: ( localize2(5508, 'Shows or hides source code in disassembly'))
|
|
247
247
|
},
|
|
248
248
|
f1: true,
|
|
249
249
|
});
|
|
@@ -258,7 +258,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
258
258
|
}
|
|
259
259
|
class RunToCursorAction extends EditorAction {
|
|
260
260
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
261
|
-
static { this.LABEL = ( localize2(
|
|
261
|
+
static { this.LABEL = ( localize2(5509, "Run to Cursor")); }
|
|
262
262
|
constructor() {
|
|
263
263
|
super({
|
|
264
264
|
id: RunToCursorAction.ID,
|
|
@@ -291,7 +291,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
291
291
|
}
|
|
292
292
|
class SelectionToReplAction extends EditorAction {
|
|
293
293
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
294
|
-
static { this.LABEL = ( localize2(
|
|
294
|
+
static { this.LABEL = ( localize2(5510, "Evaluate in Debug Console")); }
|
|
295
295
|
constructor() {
|
|
296
296
|
super({
|
|
297
297
|
id: SelectionToReplAction.ID,
|
|
@@ -326,7 +326,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
326
326
|
}
|
|
327
327
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
328
328
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
329
|
-
static { this.LABEL = ( localize2(
|
|
329
|
+
static { this.LABEL = ( localize2(5511, "Add to Watch")); }
|
|
330
330
|
constructor() {
|
|
331
331
|
super({
|
|
332
332
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -371,7 +371,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
371
371
|
constructor() {
|
|
372
372
|
super({
|
|
373
373
|
id: 'editor.debug.action.showDebugHover',
|
|
374
|
-
label: ( localize2(
|
|
374
|
+
label: ( localize2(5512, "Debug: Show Hover")),
|
|
375
375
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
376
376
|
kbOpts: {
|
|
377
377
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -388,10 +388,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
388
388
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
391
|
+
const NO_TARGETS_MESSAGE = ( localize(5513, "Step targets are not available here"));
|
|
392
392
|
class StepIntoTargetsAction extends EditorAction {
|
|
393
393
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
394
|
-
static { this.LABEL = ( localize(
|
|
394
|
+
static { this.LABEL = ( localize(5514, "Step Into Target")); }
|
|
395
395
|
constructor() {
|
|
396
396
|
super({
|
|
397
397
|
id: StepIntoTargetsAction.ID,
|
|
@@ -496,7 +496,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
496
496
|
constructor() {
|
|
497
497
|
super(true, {
|
|
498
498
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
499
|
-
label: ( localize2(
|
|
499
|
+
label: ( localize2(5515, "Debug: Go to Next Breakpoint")),
|
|
500
500
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
501
501
|
});
|
|
502
502
|
}
|
|
@@ -505,7 +505,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
505
505
|
constructor() {
|
|
506
506
|
super(false, {
|
|
507
507
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
508
|
-
label: ( localize2(
|
|
508
|
+
label: ( localize2(5516, "Debug: Go to Previous Breakpoint")),
|
|
509
509
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
510
510
|
});
|
|
511
511
|
}
|
|
@@ -514,7 +514,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
514
514
|
constructor() {
|
|
515
515
|
super({
|
|
516
516
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
517
|
-
label: ( localize2(
|
|
517
|
+
label: ( localize2(5517, "Close Exception Widget")),
|
|
518
518
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
519
519
|
kbOpts: {
|
|
520
520
|
primary: KeyCode.Escape,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
3
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
4
|
import { IFileOpenOptions, IFileChange, IFileSystemProvider, IStat, IWatchOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
4
5
|
import { IDebugSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
5
6
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
6
|
-
export declare class DebugMemoryFileSystemProvider implements IFileSystemProvider {
|
|
7
|
+
export declare class DebugMemoryFileSystemProvider extends Disposable implements IFileSystemProvider {
|
|
7
8
|
private readonly debugService;
|
|
8
9
|
private memoryFdCounter;
|
|
9
10
|
private readonly fdMemory;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
3
3
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
-
import { toDisposable, DisposableStore
|
|
4
|
+
import { Disposable, toDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { clamp } from '@codingame/monaco-vscode-api/vscode/vs/base/common/numbers';
|
|
6
6
|
import { assertNever } from '@codingame/monaco-vscode-api/vscode/vs/base/common/assert';
|
|
7
7
|
import { FileSystemProviderCapabilities, FileChangeType, FilePermission, FileType, createFileSystemProviderError, FileSystemProviderErrorCode } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
8
8
|
import { State, MemoryRangeType, DEBUG_MEMORY_SCHEME } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
9
9
|
|
|
10
10
|
const rangeRe = /range=([0-9]+):([0-9]+)/;
|
|
11
|
-
class DebugMemoryFileSystemProvider {
|
|
11
|
+
class DebugMemoryFileSystemProvider extends Disposable {
|
|
12
12
|
constructor(debugService) {
|
|
13
|
+
super();
|
|
13
14
|
this.debugService = debugService;
|
|
14
15
|
this.memoryFdCounter = 0;
|
|
15
16
|
this.fdMemory = ( new Map());
|
|
@@ -19,13 +20,13 @@ class DebugMemoryFileSystemProvider {
|
|
|
19
20
|
this.capabilities = 0
|
|
20
21
|
| FileSystemProviderCapabilities.PathCaseSensitive
|
|
21
22
|
| FileSystemProviderCapabilities.FileOpenReadWriteClose;
|
|
22
|
-
debugService.onDidEndSession(({ session }) => {
|
|
23
|
+
this._register(debugService.onDidEndSession(({ session }) => {
|
|
23
24
|
for (const [fd, memory] of this.fdMemory) {
|
|
24
25
|
if (memory.session === session) {
|
|
25
26
|
this.close(fd);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
});
|
|
29
|
+
}));
|
|
29
30
|
}
|
|
30
31
|
watch(resource, opts) {
|
|
31
32
|
if (opts.recursive) {
|
|
@@ -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-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/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";
|