@codingame/monaco-vscode-debug-service-override 4.1.0 → 4.1.2

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/external/rollup-plugin-styles/dist/runtime/inject-css.js +3 -0
  3. package/external/tslib/tslib.es6.js +11 -0
  4. package/override/vs/platform/dialogs/common/dialogs.js +10 -0
  5. package/package.json +2 -2
  6. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +73 -0
  7. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +1026 -0
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +1004 -0
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +347 -0
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +337 -0
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +432 -0
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +1039 -0
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +649 -0
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +64 -0
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +636 -0
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +740 -0
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +408 -0
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +206 -0
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +80 -0
  20. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +169 -0
  21. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +1271 -0
  22. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +1330 -0
  23. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +115 -0
  24. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +77 -0
  25. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +307 -0
  26. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +31 -0
  27. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +387 -0
  28. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +267 -0
  29. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +817 -0
  30. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +131 -0
  31. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +142 -0
  32. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +262 -0
  33. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +669 -0
  34. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +6 -0
  35. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +6 -0
  36. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +6 -0
  37. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +6 -0
  38. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +6 -0
  39. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +6 -0
  40. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +709 -0
  41. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +1002 -0
  42. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +48 -0
  43. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +352 -0
  44. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +129 -0
  45. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +734 -0
  46. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +501 -0
  47. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +162 -0
  48. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +21 -0
  49. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +17 -0
  50. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +110 -0
  51. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +62 -0
  52. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +460 -0
  53. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +166 -0
  54. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +36 -0
  55. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +150 -0
  56. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +289 -0
  57. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +87 -0
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +64 -0
  59. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +311 -0
  60. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +29 -0
@@ -0,0 +1,80 @@
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 };
@@ -0,0 +1,169 @@
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 };