@codingame/monaco-vscode-debug-service-override 1.82.4 → 1.82.5-next.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/debug.d.ts +5 -0
- package/debug.js +24 -0
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +3 -0
- package/external/tslib/tslib.es6.js +11 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/override/vs/platform/dialogs/common/dialogs.js +8 -0
- package/package.json +2 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +44 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +200 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +785 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +399 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1298 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +178 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +960 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +497 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +347 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +299 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +400 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +827 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +621 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +60 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +527 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +681 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +356 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +206 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +82 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +143 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +1174 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +1144 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +106 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +68 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +275 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +314 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +168 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +663 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +105 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +231 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +631 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +695 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +953 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +48 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +336 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +98 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +575 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +415 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +102 -0
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +21 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +17 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +100 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +59 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1482 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +346 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +123 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +175 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +36 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +117 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +260 -0
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +27 -0
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +83 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +283 -0
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +305 -0
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +28 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +176 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +12 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { PickerQuickAccessProvider, TriggerAction } from 'monaco-editor/esm/vs/platform/quickinput/browser/pickerQuickAccess.js';
|
|
3
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
4
|
+
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
5
|
+
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
6
|
+
import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
7
|
+
import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
8
|
+
import { matchesFuzzy } from 'monaco-editor/esm/vs/base/common/filters.js';
|
|
9
|
+
import { DEBUG_QUICK_ACCESS_PREFIX, ADD_CONFIGURATION_ID } from './debugCommands.js';
|
|
10
|
+
import { debugConfigure, debugRemoveConfig } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
11
|
+
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
12
|
+
|
|
13
|
+
let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends PickerQuickAccessProvider {
|
|
14
|
+
constructor(debugService, contextService, commandService, notificationService) {
|
|
15
|
+
super(DEBUG_QUICK_ACCESS_PREFIX, {
|
|
16
|
+
noResultsPick: {
|
|
17
|
+
label: ( localize('noDebugResults', "No matching launch configurations"))
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
this.debugService = debugService;
|
|
21
|
+
this.contextService = contextService;
|
|
22
|
+
this.commandService = commandService;
|
|
23
|
+
this.notificationService = notificationService;
|
|
24
|
+
}
|
|
25
|
+
async _getPicks(filter) {
|
|
26
|
+
const picks = [];
|
|
27
|
+
if (!this.debugService.getAdapterManager().hasEnabledDebuggers()) {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
picks.push({ type: 'separator', label: 'launch.json' });
|
|
31
|
+
const configManager = this.debugService.getConfigurationManager();
|
|
32
|
+
let lastGroup;
|
|
33
|
+
for (const config of configManager.getAllConfigurations()) {
|
|
34
|
+
const highlights = matchesFuzzy(filter, config.name, true);
|
|
35
|
+
if (highlights) {
|
|
36
|
+
if (lastGroup !== config.presentation?.group) {
|
|
37
|
+
picks.push({ type: 'separator' });
|
|
38
|
+
lastGroup = config.presentation?.group;
|
|
39
|
+
}
|
|
40
|
+
picks.push({
|
|
41
|
+
label: config.name,
|
|
42
|
+
description: this.contextService.getWorkbenchState() === 3 ? config.launch.name : '',
|
|
43
|
+
highlights: { label: highlights },
|
|
44
|
+
buttons: [{
|
|
45
|
+
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
46
|
+
tooltip: ( localize('customizeLaunchConfig', "Configure Launch Configuration"))
|
|
47
|
+
}],
|
|
48
|
+
trigger: () => {
|
|
49
|
+
config.launch.openConfigFile({ preserveFocus: false });
|
|
50
|
+
return TriggerAction.CLOSE_PICKER;
|
|
51
|
+
},
|
|
52
|
+
accept: async () => {
|
|
53
|
+
await configManager.selectConfiguration(config.launch, config.name);
|
|
54
|
+
try {
|
|
55
|
+
await this.debugService.startDebugging(config.launch, undefined, { startedByUser: true });
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
this.notificationService.error(error);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const dynamicProviders = await configManager.getDynamicProviders();
|
|
65
|
+
if (dynamicProviders.length > 0) {
|
|
66
|
+
picks.push({
|
|
67
|
+
type: 'separator', label: ( localize({
|
|
68
|
+
key: 'contributed',
|
|
69
|
+
comment: ['contributed is lower case because it looks better like that in UI. Nothing preceeds it. It is a name of the grouping of debug configurations.']
|
|
70
|
+
}, "contributed"))
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
74
|
+
const highlights = matchesFuzzy(filter, name, true);
|
|
75
|
+
if (highlights) {
|
|
76
|
+
picks.push({
|
|
77
|
+
label: name,
|
|
78
|
+
highlights: { label: highlights },
|
|
79
|
+
buttons: [{
|
|
80
|
+
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
81
|
+
tooltip: ( localize('removeLaunchConfig', "Remove Launch Configuration"))
|
|
82
|
+
}],
|
|
83
|
+
trigger: () => {
|
|
84
|
+
configManager.removeRecentDynamicConfigurations(name, type);
|
|
85
|
+
return TriggerAction.CLOSE_PICKER;
|
|
86
|
+
},
|
|
87
|
+
accept: async () => {
|
|
88
|
+
await configManager.selectConfiguration(undefined, name, undefined, { type });
|
|
89
|
+
try {
|
|
90
|
+
const { launch, getConfig } = configManager.selectedConfiguration;
|
|
91
|
+
const config = await getConfig();
|
|
92
|
+
await this.debugService.startDebugging(launch, config, { startedByUser: true });
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
this.notificationService.error(error);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
dynamicProviders.forEach(provider => {
|
|
102
|
+
picks.push({
|
|
103
|
+
label: `$(folder) ${provider.label}...`,
|
|
104
|
+
ariaLabel: ( localize(
|
|
105
|
+
{ key: 'providerAriaLabel', comment: ['Placeholder stands for the provider label. For example "NodeJS".'] },
|
|
106
|
+
"{0} contributed configurations",
|
|
107
|
+
provider.label
|
|
108
|
+
)),
|
|
109
|
+
accept: async () => {
|
|
110
|
+
const pick = await provider.pick();
|
|
111
|
+
if (pick) {
|
|
112
|
+
await configManager.selectConfiguration(pick.launch, pick.config.name, pick.config, { type: provider.type });
|
|
113
|
+
this.debugService.startDebugging(pick.launch, pick.config, { startedByUser: true });
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
119
|
+
if (visibleLaunches.length > 0) {
|
|
120
|
+
picks.push({ type: 'separator', label: ( localize('configure', "configure")) });
|
|
121
|
+
}
|
|
122
|
+
for (const launch of visibleLaunches) {
|
|
123
|
+
const label = this.contextService.getWorkbenchState() === 3 ?
|
|
124
|
+
( localize("addConfigTo", "Add Config ({0})...", launch.name)) :
|
|
125
|
+
( localize('addConfiguration', "Add Configuration..."));
|
|
126
|
+
picks.push({
|
|
127
|
+
label,
|
|
128
|
+
description: this.contextService.getWorkbenchState() === 3 ? launch.name : '',
|
|
129
|
+
highlights: { label: matchesFuzzy(filter, label, true) ?? undefined },
|
|
130
|
+
accept: () => this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( launch.uri.toString()))
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return picks;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
StartDebugQuickAccessProvider = ( __decorate([
|
|
137
|
+
( __param(0, IDebugService)),
|
|
138
|
+
( __param(1, IWorkspaceContextService)),
|
|
139
|
+
( __param(2, ICommandService)),
|
|
140
|
+
( __param(3, INotificationService))
|
|
141
|
+
], StartDebugQuickAccessProvider));
|
|
142
|
+
|
|
143
|
+
export { StartDebugQuickAccessProvider };
|