@codingame/monaco-vscode-debug-service-override 4.0.0 → 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.
Files changed (60) hide show
  1. package/debug.js +4 -4
  2. package/package.json +2 -2
  3. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
  4. package/external/tslib/tslib.es6.js +0 -11
  5. package/override/vs/platform/dialogs/common/dialogs.js +0 -10
  6. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +0 -73
  7. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -1026
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -1004
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -347
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -337
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -432
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1039
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -649
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -64
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -636
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -740
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -408
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -206
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
  20. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -169
  21. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1271
  22. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1330
  23. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -115
  24. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -77
  25. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -307
  26. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +0 -31
  27. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -387
  28. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -267
  29. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -817
  30. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -131
  31. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +0 -142
  32. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -262
  33. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -669
  34. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -6
  35. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -6
  36. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -6
  37. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -6
  38. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -6
  39. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -6
  40. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -709
  41. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -1002
  42. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -48
  43. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -352
  44. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -129
  45. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -734
  46. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -501
  47. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -162
  48. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -21
  49. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -17
  50. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -110
  51. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -62
  52. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -460
  53. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -166
  54. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -36
  55. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -150
  56. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -289
  57. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -87
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +0 -64
  59. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -311
  60. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -29
@@ -1,80 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Event } from 'vscode/vscode/vs/base/common/event';
3
- import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
4
- import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress';
5
- import { VIEWLET_ID, IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
6
- import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
7
-
8
- let DebugProgressContribution = class DebugProgressContribution {
9
- constructor(debugService, progressService, viewsService) {
10
- this.toDispose = [];
11
- let progressListener;
12
- const listenOnProgress = (session) => {
13
- if (progressListener) {
14
- progressListener.dispose();
15
- progressListener = undefined;
16
- }
17
- if (session) {
18
- progressListener = session.onDidProgressStart(async (progressStartEvent) => {
19
- const promise = ( new Promise(r => {
20
- const listener = Event.any(Event.filter(session.onDidProgressEnd, e => e.body.progressId === progressStartEvent.body.progressId), session.onDidEndAdapter)(() => {
21
- listener.dispose();
22
- r();
23
- });
24
- }));
25
- if (viewsService.isViewContainerVisible(VIEWLET_ID)) {
26
- progressService.withProgress({ location: VIEWLET_ID }, () => promise);
27
- }
28
- const source = debugService.getAdapterManager().getDebuggerLabel(session.configuration.type);
29
- progressService.withProgress({
30
- location: 15 ,
31
- title: progressStartEvent.body.title,
32
- cancellable: progressStartEvent.body.cancellable,
33
- source,
34
- delay: 500
35
- }, progressStep => {
36
- let total = 0;
37
- const reportProgress = (progress) => {
38
- let increment = undefined;
39
- if (typeof progress.percentage === 'number') {
40
- increment = progress.percentage - total;
41
- total += increment;
42
- }
43
- progressStep.report({
44
- message: progress.message,
45
- increment,
46
- total: typeof increment === 'number' ? 100 : undefined,
47
- });
48
- };
49
- if (progressStartEvent.body.message) {
50
- reportProgress(progressStartEvent.body);
51
- }
52
- const progressUpdateListener = session.onDidProgressUpdate(e => {
53
- if (e.body.progressId === progressStartEvent.body.progressId) {
54
- reportProgress(e.body);
55
- }
56
- });
57
- return promise.then(() => progressUpdateListener.dispose());
58
- }, () => session.cancel(progressStartEvent.body.progressId));
59
- });
60
- }
61
- };
62
- this.toDispose.push(debugService.getViewModel().onDidFocusSession(listenOnProgress));
63
- listenOnProgress(debugService.getViewModel().focusedSession);
64
- this.toDispose.push(debugService.onWillNewSession(session => {
65
- if (!progressListener) {
66
- listenOnProgress(session);
67
- }
68
- }));
69
- }
70
- dispose() {
71
- dispose(this.toDispose);
72
- }
73
- };
74
- DebugProgressContribution = ( __decorate([
75
- ( __param(0, IDebugService)),
76
- ( __param(1, IProgressService)),
77
- ( __param(2, IViewsService))
78
- ], DebugProgressContribution));
79
-
80
- export { DebugProgressContribution };
@@ -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 };