@codingame/monaco-vscode-debug-service-override 3.2.3 → 4.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/debug.js +4 -4
- package/package.json +2 -2
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
- package/external/tslib/tslib.es6.js +0 -11
- package/override/vs/platform/dialogs/common/dialogs.js +0 -8
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +0 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -1011
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -970
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -347
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -324
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -432
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1039
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -649
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -64
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -636
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -725
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -398
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -206
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -169
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1271
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1305
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -115
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -77
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -307
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +0 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -378
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -267
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -808
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -121
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +0 -141
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -262
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -669
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -709
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -992
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -348
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -119
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -763
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -501
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -162
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -21
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -110
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -62
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -460
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -162
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -36
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -148
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -289
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -87
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +0 -64
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -311
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -28
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { PickerQuickAccessProvider, TriggerAction } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
3
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
5
|
-
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
6
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
7
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
8
|
-
import { matchesFuzzy } from 'vscode/vscode/vs/base/common/filters';
|
|
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 'vscode/vscode/vs/base/common/themables';
|
|
12
|
-
|
|
13
|
-
let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends PickerQuickAccessProvider {
|
|
14
|
-
constructor(debugService, contextService, commandService, notificationService) {
|
|
15
|
-
super(DEBUG_QUICK_ACCESS_PREFIX, {
|
|
16
|
-
noResultsPick: {
|
|
17
|
-
label: ( localizeWithPath(
|
|
18
|
-
'vs/workbench/contrib/debug/browser/debugQuickAccess',
|
|
19
|
-
'noDebugResults',
|
|
20
|
-
"No matching launch configurations"
|
|
21
|
-
))
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
this.debugService = debugService;
|
|
25
|
-
this.contextService = contextService;
|
|
26
|
-
this.commandService = commandService;
|
|
27
|
-
this.notificationService = notificationService;
|
|
28
|
-
}
|
|
29
|
-
async _getPicks(filter) {
|
|
30
|
-
const picks = [];
|
|
31
|
-
if (!this.debugService.getAdapterManager().hasEnabledDebuggers()) {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
picks.push({ type: 'separator', label: 'launch.json' });
|
|
35
|
-
const configManager = this.debugService.getConfigurationManager();
|
|
36
|
-
let lastGroup;
|
|
37
|
-
for (const config of configManager.getAllConfigurations()) {
|
|
38
|
-
const highlights = matchesFuzzy(filter, config.name, true);
|
|
39
|
-
if (highlights) {
|
|
40
|
-
if (lastGroup !== config.presentation?.group) {
|
|
41
|
-
picks.push({ type: 'separator' });
|
|
42
|
-
lastGroup = config.presentation?.group;
|
|
43
|
-
}
|
|
44
|
-
picks.push({
|
|
45
|
-
label: config.name,
|
|
46
|
-
description: this.contextService.getWorkbenchState() === 3 ? config.launch.name : '',
|
|
47
|
-
highlights: { label: highlights },
|
|
48
|
-
buttons: [{
|
|
49
|
-
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
50
|
-
tooltip: ( localizeWithPath(
|
|
51
|
-
'vs/workbench/contrib/debug/browser/debugQuickAccess',
|
|
52
|
-
'customizeLaunchConfig',
|
|
53
|
-
"Configure Launch Configuration"
|
|
54
|
-
))
|
|
55
|
-
}],
|
|
56
|
-
trigger: () => {
|
|
57
|
-
config.launch.openConfigFile({ preserveFocus: false });
|
|
58
|
-
return TriggerAction.CLOSE_PICKER;
|
|
59
|
-
},
|
|
60
|
-
accept: async () => {
|
|
61
|
-
await configManager.selectConfiguration(config.launch, config.name);
|
|
62
|
-
try {
|
|
63
|
-
await this.debugService.startDebugging(config.launch, undefined, { startedByUser: true });
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
this.notificationService.error(error);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
const dynamicProviders = await configManager.getDynamicProviders();
|
|
73
|
-
if (dynamicProviders.length > 0) {
|
|
74
|
-
picks.push({
|
|
75
|
-
type: 'separator', label: ( localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', {
|
|
76
|
-
key: 'contributed',
|
|
77
|
-
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.']
|
|
78
|
-
}, "contributed"))
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
82
|
-
const highlights = matchesFuzzy(filter, name, true);
|
|
83
|
-
if (highlights) {
|
|
84
|
-
picks.push({
|
|
85
|
-
label: name,
|
|
86
|
-
highlights: { label: highlights },
|
|
87
|
-
buttons: [{
|
|
88
|
-
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
89
|
-
tooltip: ( localizeWithPath(
|
|
90
|
-
'vs/workbench/contrib/debug/browser/debugQuickAccess',
|
|
91
|
-
'removeLaunchConfig',
|
|
92
|
-
"Remove Launch Configuration"
|
|
93
|
-
))
|
|
94
|
-
}],
|
|
95
|
-
trigger: () => {
|
|
96
|
-
configManager.removeRecentDynamicConfigurations(name, type);
|
|
97
|
-
return TriggerAction.CLOSE_PICKER;
|
|
98
|
-
},
|
|
99
|
-
accept: async () => {
|
|
100
|
-
await configManager.selectConfiguration(undefined, name, undefined, { type });
|
|
101
|
-
try {
|
|
102
|
-
const { launch, getConfig } = configManager.selectedConfiguration;
|
|
103
|
-
const config = await getConfig();
|
|
104
|
-
await this.debugService.startDebugging(launch, config, { startedByUser: true });
|
|
105
|
-
}
|
|
106
|
-
catch (error) {
|
|
107
|
-
this.notificationService.error(error);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
dynamicProviders.forEach(provider => {
|
|
114
|
-
picks.push({
|
|
115
|
-
label: `$(folder) ${provider.label}...`,
|
|
116
|
-
ariaLabel: ( localizeWithPath(
|
|
117
|
-
'vs/workbench/contrib/debug/browser/debugQuickAccess',
|
|
118
|
-
{ key: 'providerAriaLabel', comment: ['Placeholder stands for the provider label. For example "NodeJS".'] },
|
|
119
|
-
"{0} contributed configurations",
|
|
120
|
-
provider.label
|
|
121
|
-
)),
|
|
122
|
-
accept: async () => {
|
|
123
|
-
const pick = await provider.pick();
|
|
124
|
-
if (pick) {
|
|
125
|
-
await configManager.selectConfiguration(pick.launch, pick.config.name, pick.config, { type: provider.type });
|
|
126
|
-
this.debugService.startDebugging(pick.launch, pick.config, { startedByUser: true });
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
132
|
-
if (visibleLaunches.length > 0) {
|
|
133
|
-
picks.push({ type: 'separator', label: ( localizeWithPath(
|
|
134
|
-
'vs/workbench/contrib/debug/browser/debugQuickAccess',
|
|
135
|
-
'configure',
|
|
136
|
-
"configure"
|
|
137
|
-
)) });
|
|
138
|
-
}
|
|
139
|
-
for (const launch of visibleLaunches) {
|
|
140
|
-
const label = this.contextService.getWorkbenchState() === 3 ?
|
|
141
|
-
( localizeWithPath(
|
|
142
|
-
'vs/workbench/contrib/debug/browser/debugQuickAccess',
|
|
143
|
-
"addConfigTo",
|
|
144
|
-
"Add Config ({0})...",
|
|
145
|
-
launch.name
|
|
146
|
-
)) :
|
|
147
|
-
( localizeWithPath(
|
|
148
|
-
'vs/workbench/contrib/debug/browser/debugQuickAccess',
|
|
149
|
-
'addConfiguration',
|
|
150
|
-
"Add Configuration..."
|
|
151
|
-
));
|
|
152
|
-
picks.push({
|
|
153
|
-
label,
|
|
154
|
-
description: this.contextService.getWorkbenchState() === 3 ? launch.name : '',
|
|
155
|
-
highlights: { label: matchesFuzzy(filter, label, true) ?? undefined },
|
|
156
|
-
accept: () => this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( launch.uri.toString()))
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
return picks;
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
StartDebugQuickAccessProvider = ( __decorate([
|
|
163
|
-
( __param(0, IDebugService)),
|
|
164
|
-
( __param(1, IWorkspaceContextService)),
|
|
165
|
-
( __param(2, ICommandService)),
|
|
166
|
-
( __param(3, INotificationService))
|
|
167
|
-
], StartDebugQuickAccessProvider));
|
|
168
|
-
|
|
169
|
-
export { StartDebugQuickAccessProvider };
|