@codingame/monaco-vscode-debug-service-override 11.1.2 → 12.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.
Files changed (115) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +27 -1
  3. package/package.json +42 -8
  4. package/service-override/tools/debugAssets.d.ts +1 -0
  5. package/service-override/tools/debugAssets.js +5 -0
  6. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.d.ts +28 -0
  7. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +1 -0
  8. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.d.ts +79 -0
  9. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +24 -22
  10. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +45 -0
  11. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +108 -132
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.d.ts +1 -0
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +208 -264
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.d.ts +50 -0
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +46 -40
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.d.ts +71 -0
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +72 -54
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.d.ts +91 -0
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +151 -148
  20. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +14 -0
  21. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +10 -9
  22. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.d.ts +22 -0
  23. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +65 -107
  24. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.d.ts +64 -0
  25. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +108 -105
  26. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.d.ts +65 -0
  27. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +49 -37
  28. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.d.ts +37 -0
  29. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +11 -10
  30. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.d.ts +9 -0
  31. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +4 -2
  32. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +14 -0
  33. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +24 -22
  34. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.d.ts +160 -0
  35. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +194 -169
  36. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +206 -0
  37. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +150 -173
  38. package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.d.ts +1 -0
  39. package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +1 -0
  40. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.d.ts +14 -0
  41. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +14 -11
  42. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.d.ts +36 -0
  43. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +76 -68
  44. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.d.ts +9 -0
  45. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +4 -2
  46. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +54 -0
  47. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +70 -94
  48. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +45 -0
  49. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +59 -84
  50. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +64 -0
  51. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +61 -60
  52. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.d.ts +18 -0
  53. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +19 -17
  54. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.d.ts +19 -0
  55. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +7 -4
  56. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +36 -0
  57. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +55 -53
  58. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +1 -1
  59. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +1 -1
  60. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +1 -1
  61. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +1 -1
  62. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +1 -1
  63. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +1 -1
  64. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.d.ts +120 -0
  65. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +62 -61
  66. package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +107 -0
  67. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +148 -155
  68. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +26 -0
  69. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +39 -38
  70. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.d.ts +39 -0
  71. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +8 -5
  72. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.d.ts +9 -0
  73. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +6 -4
  74. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.d.ts +131 -0
  75. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +42 -40
  76. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.d.ts +28 -0
  77. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +74 -76
  78. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.d.ts +25 -0
  79. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +16 -14
  80. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.d.ts +78 -0
  81. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +74 -75
  82. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.d.ts +57 -0
  83. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +63 -63
  84. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.d.ts +26 -0
  85. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +53 -66
  86. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.d.ts +10 -0
  87. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +2 -1
  88. package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.d.ts +16 -0
  89. package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +3 -2
  90. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.d.ts +6 -0
  91. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +1 -0
  92. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.d.ts +21 -0
  93. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +16 -15
  94. package/vscode/src/vs/workbench/contrib/debug/common/debugContext.d.ts +6 -0
  95. package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +1 -0
  96. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.d.ts +15 -0
  97. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +11 -10
  98. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.d.ts +7 -0
  99. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +51 -50
  100. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.d.ts +34 -0
  101. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +26 -22
  102. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.d.ts +10 -0
  103. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +2 -1
  104. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.d.ts +77 -0
  105. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +1 -0
  106. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.d.ts +55 -0
  107. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +3 -2
  108. package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +52 -0
  109. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +83 -84
  110. package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.d.ts +9 -0
  111. package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +2 -1
  112. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.d.ts +2 -0
  113. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +5 -4
  114. package/debug.js +0 -26
  115. package/tools/debugAssets.js +0 -4
@@ -1,3 +1,4 @@
1
+
1
2
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
2
3
  import { Extensions } from 'vscode/vscode/vs/workbench/common/configuration';
3
4
 
@@ -0,0 +1,14 @@
1
+ import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
2
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
3
+ import { IStatusbarService } from "vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service";
4
+ import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
5
+ export declare class DebugStatusContribution implements IWorkbenchContribution {
6
+ private readonly statusBarService;
7
+ private readonly debugService;
8
+ private showInStatusBar;
9
+ private toDispose;
10
+ private entryAccessor;
11
+ constructor(statusBarService: IStatusbarService, debugService: IDebugService, configurationService: IConfigurationService);
12
+ private get entry();
13
+ dispose(): void;
14
+ }
@@ -1,8 +1,11 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { localize } from 'vscode/vscode/vs/nls';
3
4
  import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
5
+ import { State } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
4
6
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
5
7
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
8
+ import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
6
9
  import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
7
10
 
8
11
  let DebugStatusContribution = class DebugStatusContribution {
@@ -11,7 +14,7 @@ let DebugStatusContribution = class DebugStatusContribution {
11
14
  this.debugService = debugService;
12
15
  this.toDispose = [];
13
16
  const addStatusBarEntry = () => {
14
- this.entryAccessor = this.statusBarService.addEntry(this.entry, 'status.debug', 0 , 30 );
17
+ this.entryAccessor = this.statusBarService.addEntry(this.entry, 'status.debug', StatusbarAlignment.LEFT, 30 );
15
18
  };
16
19
  const setShowInStatusBar = () => {
17
20
  this.showInStatusBar = configurationService.getValue('debug').showInStatusBar;
@@ -21,7 +24,7 @@ let DebugStatusContribution = class DebugStatusContribution {
21
24
  };
22
25
  setShowInStatusBar();
23
26
  this.toDispose.push(this.debugService.onDidChangeState(state => {
24
- if (state !== 0 && this.showInStatusBar === 'onFirstSessionStart' && !this.entryAccessor) {
27
+ if (state !== State.Inactive && this.showInStatusBar === 'onFirstSessionStart' && !this.entryAccessor) {
25
28
  addStatusBarEntry();
26
29
  }
27
30
  }));
@@ -47,10 +50,10 @@ let DebugStatusContribution = class DebugStatusContribution {
47
50
  text = (manager.getLaunches().length > 1 ? `${name} (${manager.selectedConfiguration.launch.name})` : name);
48
51
  }
49
52
  return {
50
- name: ( localize(6050, "Debug")),
53
+ name: ( localize(5372, "Debug")),
51
54
  text: '$(debug-alt-small) ' + text,
52
- ariaLabel: ( localize(6051, "Debug: {0}", text)),
53
- tooltip: ( localize(6052, "Select and Start Debug Configuration")),
55
+ ariaLabel: ( localize(5373, "Debug: {0}", text)),
56
+ tooltip: ( localize(5374, "Select and Start Debug Configuration")),
54
57
  command: 'workbench.action.debug.selectandstart'
55
58
  };
56
59
  }
@@ -59,10 +62,10 @@ let DebugStatusContribution = class DebugStatusContribution {
59
62
  dispose(this.toDispose);
60
63
  }
61
64
  };
62
- DebugStatusContribution = ( (__decorate([
63
- ( (__param(0, IStatusbarService))),
64
- ( (__param(1, IDebugService))),
65
- ( (__param(2, IConfigurationService)))
66
- ], DebugStatusContribution)));
65
+ DebugStatusContribution = ( __decorate([
66
+ ( __param(0, IStatusbarService)),
67
+ ( __param(1, IDebugService)),
68
+ ( __param(2, IConfigurationService))
69
+ ], DebugStatusContribution));
67
70
 
68
71
  export { DebugStatusContribution };
@@ -0,0 +1,36 @@
1
+ import { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
3
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
4
+ import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
5
+ import { IMarkerService } from "vscode/vscode/vs/platform/markers/common/markers.service";
6
+ import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
7
+ import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
8
+ import { IWorkspace, IWorkspaceFolder } from "vscode/vscode/vs/platform/workspace/common/workspace";
9
+ import { ITaskIdentifier } from "vscode/vscode/vs/workbench/contrib/tasks/common/tasks";
10
+ import { ITaskSummary } from "@codingame/monaco-vscode-625898ab-0e33-5b7f-a3ae-29c10271dc1c-common/vscode/vs/workbench/contrib/tasks/common/taskService";
11
+ import { ITaskService } from "vscode/vscode/vs/workbench/contrib/tasks/common/taskService.service";
12
+ import { IViewsService } from "vscode/vscode/vs/workbench/services/views/common/viewsService.service";
13
+ export declare enum TaskRunResult {
14
+ Failure = 0,
15
+ Success = 1
16
+ }
17
+ interface IRunnerTaskSummary extends ITaskSummary {
18
+ cancelled?: boolean;
19
+ }
20
+ export declare class DebugTaskRunner implements IDisposable {
21
+ private readonly taskService;
22
+ private readonly markerService;
23
+ private readonly configurationService;
24
+ private readonly viewsService;
25
+ private readonly dialogService;
26
+ private readonly storageService;
27
+ private readonly commandService;
28
+ private readonly progressService;
29
+ private globalCancellation;
30
+ constructor(taskService: ITaskService, markerService: IMarkerService, configurationService: IConfigurationService, viewsService: IViewsService, dialogService: IDialogService, storageService: IStorageService, commandService: ICommandService, progressService: IProgressService);
31
+ cancel(): void;
32
+ dispose(): void;
33
+ runTaskAndCheckErrors(root: IWorkspaceFolder | IWorkspace | undefined, taskId: string | ITaskIdentifier | undefined): Promise<TaskRunResult>;
34
+ runTask(root: IWorkspace | IWorkspaceFolder | undefined, taskId: string | ITaskIdentifier | undefined, token?: import("vscode/vscode/vs/base/common/cancellation").CancellationToken): Promise<IRunnerTaskSummary | null>;
35
+ }
36
+ export {};
@@ -1,30 +1,38 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { Action } from 'vscode/vscode/vs/base/common/actions';
3
4
  import { disposableTimeout } from 'vscode/vscode/vs/base/common/async';
4
5
  import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
5
6
  import { createErrorWithActions } from 'vscode/vscode/vs/base/common/errorMessage';
6
7
  import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
7
8
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
8
- import Severity$1 from 'vscode/vscode/vs/base/common/severity';
9
+ import Severity from 'vscode/vscode/vs/base/common/severity';
9
10
  import { localize } from 'vscode/vscode/vs/nls';
10
11
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
11
12
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
12
13
  import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
13
14
  import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers';
14
15
  import { IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers.service';
16
+ import { ProgressLocation } from 'vscode/vscode/vs/platform/progress/common/progress';
15
17
  import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
18
+ import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
16
19
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
17
- import { DEBUG_CONFIGURE_COMMAND_ID, DEBUG_CONFIGURE_LABEL } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
18
- import { Markers } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
19
- import { CustomTask, ConfiguringTask } from 'vscode/vscode/vs/workbench/contrib/tasks/common/tasks';
20
+ import { DEBUG_CONFIGURE_COMMAND_ID, DEBUG_CONFIGURE_LABEL } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
21
+ import { Markers } from '@codingame/monaco-vscode-2448342b-297f-5823-9f41-f18eef0f6ee8-common/vscode/vs/workbench/contrib/markers/common/markers';
22
+ import { TaskEventKind, CustomTask, ConfiguringTask } from 'vscode/vscode/vs/workbench/contrib/tasks/common/tasks';
20
23
  import { ITaskService } from 'vscode/vscode/vs/workbench/contrib/tasks/common/taskService.service';
21
24
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
22
25
 
23
26
  const onceFilter = (event, filter) => Event.once(Event.filter(event, filter));
27
+ var TaskRunResult;
28
+ (function (TaskRunResult) {
29
+ TaskRunResult[TaskRunResult["Failure"] = 0] = "Failure";
30
+ TaskRunResult[TaskRunResult["Success"] = 1] = "Success";
31
+ })(TaskRunResult || (TaskRunResult = {}));
24
32
  const DEBUG_TASK_ERROR_CHOICE_KEY = 'debug.taskerrorchoice';
25
- const ABORT_LABEL = ( localize(5805, "Abort"));
26
- const DEBUG_ANYWAY_LABEL = ( localize(5806, "&&Debug Anyway"));
27
- const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(5807, "Debug Anyway"));
33
+ const ABORT_LABEL = ( localize(5375, "Abort"));
34
+ const DEBUG_ANYWAY_LABEL = ( localize(5376, "&&Debug Anyway"));
35
+ const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(5377, "Debug Anyway"));
28
36
  let DebugTaskRunner = class DebugTaskRunner {
29
37
  constructor(taskService, markerService, configurationService, viewsService, dialogService, storageService, commandService, progressService) {
30
38
  this.taskService = taskService;
@@ -35,11 +43,11 @@ let DebugTaskRunner = class DebugTaskRunner {
35
43
  this.storageService = storageService;
36
44
  this.commandService = commandService;
37
45
  this.progressService = progressService;
38
- this.globalCancellation = ( (new CancellationTokenSource()));
46
+ this.globalCancellation = ( new CancellationTokenSource());
39
47
  }
40
48
  cancel() {
41
49
  this.globalCancellation.dispose(true);
42
- this.globalCancellation = ( (new CancellationTokenSource()));
50
+ this.globalCancellation = ( new CancellationTokenSource());
43
51
  }
44
52
  dispose() {
45
53
  this.globalCancellation.dispose(true);
@@ -48,43 +56,43 @@ let DebugTaskRunner = class DebugTaskRunner {
48
56
  try {
49
57
  const taskSummary = await this.runTask(root, taskId, this.globalCancellation.token);
50
58
  if (taskSummary && (taskSummary.exitCode === undefined || taskSummary.cancelled)) {
51
- return 0 ;
59
+ return TaskRunResult.Failure;
52
60
  }
53
61
  const errorCount = taskId ? this.markerService.read({ severities: MarkerSeverity.Error, take: 2 }).length : 0;
54
62
  const successExitCode = taskSummary && taskSummary.exitCode === 0;
55
63
  const failureExitCode = taskSummary && taskSummary.exitCode !== 0;
56
64
  const onTaskErrors = this.configurationService.getValue('debug').onTaskErrors;
57
65
  if (successExitCode || onTaskErrors === 'debugAnyway' || (errorCount === 0 && !failureExitCode)) {
58
- return 1 ;
66
+ return TaskRunResult.Success;
59
67
  }
60
68
  if (onTaskErrors === 'showErrors') {
61
69
  await this.viewsService.openView(Markers.MARKERS_VIEW_ID, true);
62
- return Promise.resolve(0 );
70
+ return Promise.resolve(TaskRunResult.Failure);
63
71
  }
64
72
  if (onTaskErrors === 'abort') {
65
- return Promise.resolve(0 );
73
+ return Promise.resolve(TaskRunResult.Failure);
66
74
  }
67
75
  const taskLabel = typeof taskId === 'string' ? taskId : taskId ? taskId.name : '';
68
76
  const message = errorCount > 1
69
- ? ( localize(5808, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
77
+ ? ( localize(5378, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
70
78
  : errorCount === 1
71
- ? ( localize(5809, "Error exists after running preLaunchTask '{0}'.", taskLabel))
79
+ ? ( localize(5379, "Error exists after running preLaunchTask '{0}'.", taskLabel))
72
80
  : taskSummary && typeof taskSummary.exitCode === 'number'
73
81
  ? ( localize(
74
- 5810,
82
+ 5380,
75
83
  "The preLaunchTask '{0}' terminated with exit code {1}.",
76
84
  taskLabel,
77
85
  taskSummary.exitCode
78
86
  ))
79
- : ( localize(5811, "The preLaunchTask '{0}' terminated.", taskLabel));
87
+ : ( localize(5381, "The preLaunchTask '{0}' terminated.", taskLabel));
80
88
  let DebugChoice;
81
- ( ((function(DebugChoice) {
89
+ (function (DebugChoice) {
82
90
  DebugChoice[DebugChoice["DebugAnyway"] = 1] = "DebugAnyway";
83
91
  DebugChoice[DebugChoice["ShowErrors"] = 2] = "ShowErrors";
84
92
  DebugChoice[DebugChoice["Cancel"] = 0] = "Cancel";
85
- })(DebugChoice || (DebugChoice = {}))));
93
+ })(DebugChoice || (DebugChoice = {}));
86
94
  const { result, checkboxChecked } = await this.dialogService.prompt({
87
- type: Severity$1.Warning,
95
+ type: Severity.Warning,
88
96
  message,
89
97
  buttons: [
90
98
  {
@@ -92,7 +100,7 @@ let DebugTaskRunner = class DebugTaskRunner {
92
100
  run: () => DebugChoice.DebugAnyway
93
101
  },
94
102
  {
95
- label: ( localize(5812, "&&Show Errors")),
103
+ label: ( localize(5382, "&&Show Errors")),
96
104
  run: () => DebugChoice.ShowErrors
97
105
  }
98
106
  ],
@@ -101,7 +109,7 @@ let DebugTaskRunner = class DebugTaskRunner {
101
109
  run: () => DebugChoice.Cancel
102
110
  },
103
111
  checkbox: {
104
- label: ( localize(5813, "Remember my choice in user settings")),
112
+ label: ( localize(5383, "Remember my choice in user settings")),
105
113
  }
106
114
  });
107
115
  const debugAnyway = result === DebugChoice.DebugAnyway;
@@ -110,34 +118,34 @@ let DebugTaskRunner = class DebugTaskRunner {
110
118
  this.configurationService.updateValue('debug.onTaskErrors', result === DebugChoice.DebugAnyway ? 'debugAnyway' : abort ? 'abort' : 'showErrors');
111
119
  }
112
120
  if (abort) {
113
- return Promise.resolve(0 );
121
+ return Promise.resolve(TaskRunResult.Failure);
114
122
  }
115
123
  if (debugAnyway) {
116
- return 1 ;
124
+ return TaskRunResult.Success;
117
125
  }
118
126
  await this.viewsService.openView(Markers.MARKERS_VIEW_ID, true);
119
- return Promise.resolve(0 );
127
+ return Promise.resolve(TaskRunResult.Failure);
120
128
  }
121
129
  catch (err) {
122
130
  const taskConfigureAction = this.taskService.configureAction();
123
- const choiceMap = JSON.parse(this.storageService.get(DEBUG_TASK_ERROR_CHOICE_KEY, 1 , '{}'));
131
+ const choiceMap = JSON.parse(this.storageService.get(DEBUG_TASK_ERROR_CHOICE_KEY, StorageScope.WORKSPACE, '{}'));
124
132
  let choice = -1;
125
133
  let DebugChoice;
126
- ( ((function(DebugChoice) {
134
+ (function (DebugChoice) {
127
135
  DebugChoice[DebugChoice["DebugAnyway"] = 0] = "DebugAnyway";
128
136
  DebugChoice[DebugChoice["ConfigureTask"] = 1] = "ConfigureTask";
129
137
  DebugChoice[DebugChoice["Cancel"] = 2] = "Cancel";
130
- })(DebugChoice || (DebugChoice = {}))));
138
+ })(DebugChoice || (DebugChoice = {}));
131
139
  if (choiceMap[err.message] !== undefined) {
132
140
  choice = choiceMap[err.message];
133
141
  }
134
142
  else {
135
143
  const { result, checkboxChecked } = await this.dialogService.prompt({
136
- type: Severity$1.Error,
144
+ type: Severity.Error,
137
145
  message: err.message,
138
146
  buttons: [
139
147
  {
140
- label: ( localize(5806, "&&Debug Anyway")),
148
+ label: ( localize(5376, "&&Debug Anyway")),
141
149
  run: () => DebugChoice.DebugAnyway
142
150
  },
143
151
  {
@@ -149,19 +157,19 @@ let DebugTaskRunner = class DebugTaskRunner {
149
157
  run: () => DebugChoice.Cancel
150
158
  },
151
159
  checkbox: {
152
- label: ( localize(5814, "Remember my choice for this task"))
160
+ label: ( localize(5384, "Remember my choice for this task"))
153
161
  }
154
162
  });
155
163
  choice = result;
156
164
  if (checkboxChecked) {
157
165
  choiceMap[err.message] = choice;
158
- this.storageService.store(DEBUG_TASK_ERROR_CHOICE_KEY, JSON.stringify(choiceMap), 1 , 1 );
166
+ this.storageService.store(DEBUG_TASK_ERROR_CHOICE_KEY, JSON.stringify(choiceMap), StorageScope.WORKSPACE, StorageTarget.MACHINE);
159
167
  }
160
168
  }
161
169
  if (choice === DebugChoice.ConfigureTask) {
162
170
  await taskConfigureAction.run();
163
171
  }
164
- return choice === DebugChoice.DebugAnyway ? 1 : 0 ;
172
+ return choice === DebugChoice.DebugAnyway ? TaskRunResult.Success : TaskRunResult.Failure;
165
173
  }
166
174
  }
167
175
  async runTask(root, taskId, token = this.globalCancellation.token) {
@@ -169,44 +177,44 @@ let DebugTaskRunner = class DebugTaskRunner {
169
177
  return Promise.resolve(null);
170
178
  }
171
179
  if (!root) {
172
- return Promise.reject(( (new Error(( localize(
173
- 5815,
180
+ return Promise.reject(( new Error(( localize(
181
+ 5385,
174
182
  "Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
175
183
  typeof taskId === 'string' ? taskId : taskId.type
176
- ))))));
184
+ )))));
177
185
  }
178
186
  const task = await this.taskService.getTask(root, taskId);
179
187
  if (!task) {
180
188
  const errorMessage = typeof taskId === 'string'
181
- ? ( localize(5816, "Could not find the task '{0}'.", taskId))
182
- : ( localize(5817, "Could not find the specified task."));
183
- return Promise.reject(createErrorWithActions(errorMessage, [( (new Action(
189
+ ? ( localize(5386, "Could not find the task '{0}'.", taskId))
190
+ : ( localize(5387, "Could not find the specified task."));
191
+ return Promise.reject(createErrorWithActions(errorMessage, [( new Action(
184
192
  DEBUG_CONFIGURE_COMMAND_ID,
185
193
  DEBUG_CONFIGURE_LABEL,
186
194
  undefined,
187
195
  true,
188
196
  () => this.commandService.executeCommand(DEBUG_CONFIGURE_COMMAND_ID)
189
- )))]));
197
+ ))]));
190
198
  }
191
199
  let taskStarted = false;
192
- const store = ( (new DisposableStore()));
200
+ const store = ( new DisposableStore());
193
201
  const getTaskKey = (t) => t.getKey() ?? t.getMapKey();
194
202
  const taskKey = getTaskKey(task);
195
- const inactivePromise = ( (new Promise(
203
+ const inactivePromise = ( new Promise(
196
204
  (resolve) => store.add(onceFilter(this.taskService.onDidStateChange, e => {
197
- return (e.kind === "inactive"
198
- || (e.kind === "processEnded" && e.exitCode === undefined))
205
+ return (e.kind === TaskEventKind.Inactive
206
+ || (e.kind === TaskEventKind.ProcessEnded && e.exitCode === undefined))
199
207
  && getTaskKey(e.__task) === taskKey;
200
208
  })(e => {
201
209
  taskStarted = true;
202
- resolve(e.kind === "processEnded" ? { exitCode: e.exitCode } : null);
210
+ resolve(e.kind === TaskEventKind.ProcessEnded ? { exitCode: e.exitCode } : null);
203
211
  }))
204
- )));
205
- store.add(onceFilter(this.taskService.onDidStateChange, e => (((e.kind === "active") ) || ((e.kind === "dependsOnStarted") )) && getTaskKey(e.__task) === taskKey)(() => {
212
+ ));
213
+ store.add(onceFilter(this.taskService.onDidStateChange, e => ((e.kind === TaskEventKind.Active) || (e.kind === TaskEventKind.DependsOnStarted)) && getTaskKey(e.__task) === taskKey)(() => {
206
214
  taskStarted = true;
207
215
  }));
208
- const didAcquireInput = store.add(( (new Emitter())));
209
- store.add(onceFilter(this.taskService.onDidStateChange, e => ((e.kind === "acquiredInput") ) && getTaskKey(e.__task) === taskKey)(() => didAcquireInput.fire()));
216
+ const didAcquireInput = store.add(( new Emitter()));
217
+ store.add(onceFilter(this.taskService.onDidStateChange, e => (e.kind === TaskEventKind.AcquiredInput) && getTaskKey(e.__task) === taskKey)(() => didAcquireInput.fire()));
210
218
  const taskDonePromise = this.taskService.getActiveTasks().then(async (tasks) => {
211
219
  if (tasks.find(t => getTaskKey(t) === taskKey)) {
212
220
  didAcquireInput.fire();
@@ -223,7 +231,7 @@ let DebugTaskRunner = class DebugTaskRunner {
223
231
  }
224
232
  return taskPromise.then(x => x ?? null);
225
233
  });
226
- const result = ( (new Promise((resolve, reject) => {
234
+ const result = ( new Promise((resolve, reject) => {
227
235
  taskDonePromise.then(result => {
228
236
  taskStarted = true;
229
237
  resolve(result);
@@ -237,27 +245,27 @@ let DebugTaskRunner = class DebugTaskRunner {
237
245
  store.add(disposableTimeout(() => {
238
246
  if (!taskStarted) {
239
247
  const errorMessage = ( localize(
240
- 5818,
248
+ 5388,
241
249
  "The task '{0}' has not exited and doesn't have a 'problemMatcher' defined. Make sure to define a problem matcher for watch tasks.",
242
250
  typeof taskId === 'string' ? taskId : JSON.stringify(taskId)
243
251
  ));
244
- reject({ severity: Severity$1.Error, message: errorMessage });
252
+ reject({ severity: Severity.Error, message: errorMessage });
245
253
  }
246
254
  }, waitTime));
247
255
  const hideSlowPreLaunchWarning = this.configurationService.getValue('debug').hideSlowPreLaunchWarning;
248
256
  if (!hideSlowPreLaunchWarning) {
249
257
  store.add(disposableTimeout(() => {
250
258
  const message = ( localize(
251
- 5819,
259
+ 5389,
252
260
  "Waiting for preLaunchTask '{0}'...",
253
261
  task.configurationProperties.name
254
262
  ));
255
263
  const buttons = [DEBUG_ANYWAY_LABEL_NO_MEMO, ABORT_LABEL];
256
264
  const canConfigure = task instanceof CustomTask || task instanceof ConfiguringTask;
257
265
  if (canConfigure) {
258
- buttons.splice(1, 0, ( localize(5820, "Configure Task")));
266
+ buttons.splice(1, 0, ( localize(5390, "Configure Task")));
259
267
  }
260
- this.progressService.withProgress({ location: 15 , title: message, buttons }, () => result.catch(() => { }), (choice) => {
268
+ this.progressService.withProgress({ location: ProgressLocation.Notification, title: message, buttons }, () => result.catch(() => { }), (choice) => {
261
269
  if (choice === undefined) ;
262
270
  else if (choice === 0) {
263
271
  resolve({ exitCode: 0 });
@@ -273,19 +281,19 @@ let DebugTaskRunner = class DebugTaskRunner {
273
281
  }, 10_000));
274
282
  }
275
283
  }));
276
- })));
284
+ }));
277
285
  return result.finally(() => store.dispose());
278
286
  }
279
287
  };
280
- DebugTaskRunner = ( (__decorate([
281
- ( (__param(0, ITaskService))),
282
- ( (__param(1, IMarkerService))),
283
- ( (__param(2, IConfigurationService))),
284
- ( (__param(3, IViewsService))),
285
- ( (__param(4, IDialogService))),
286
- ( (__param(5, IStorageService))),
287
- ( (__param(6, ICommandService))),
288
- ( (__param(7, IProgressService)))
289
- ], DebugTaskRunner)));
288
+ DebugTaskRunner = ( __decorate([
289
+ ( __param(0, ITaskService)),
290
+ ( __param(1, IMarkerService)),
291
+ ( __param(2, IConfigurationService)),
292
+ ( __param(3, IViewsService)),
293
+ ( __param(4, IDialogService)),
294
+ ( __param(5, IStorageService)),
295
+ ( __param(6, ICommandService)),
296
+ ( __param(7, IProgressService))
297
+ ], DebugTaskRunner));
290
298
 
291
- export { DebugTaskRunner };
299
+ export { DebugTaskRunner, TaskRunResult };
@@ -0,0 +1,9 @@
1
+ import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
2
+ import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
3
+ import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
4
+ import { ITitleService } from "vscode/vscode/vs/workbench/services/title/browser/titleService.service";
5
+ export declare class DebugTitleContribution implements IWorkbenchContribution {
6
+ private toDispose;
7
+ constructor(debugService: IDebugService, hostService: IHostService, titleService: ITitleService);
8
+ dispose(): void;
9
+ }
@@ -1,4 +1,6 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
3
+ import { State } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
2
4
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
3
5
  import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
4
6
  import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
@@ -8,7 +10,7 @@ let DebugTitleContribution = class DebugTitleContribution {
8
10
  constructor(debugService, hostService, titleService) {
9
11
  this.toDispose = [];
10
12
  const updateTitle = () => {
11
- if (debugService.state === 2 && !hostService.hasFocus) {
13
+ if (debugService.state === State.Stopped && !hostService.hasFocus) {
12
14
  titleService.updateProperties({ prefix: '🔴' });
13
15
  }
14
16
  else {
@@ -0,0 +1,54 @@
1
+ import { IActionViewItem } from "vscode/vscode/vs/base/browser/ui/actionbar/actionbar";
2
+ import { DisposableStore } from "vscode/vscode/vs/base/common/lifecycle";
3
+ import { ServicesAccessor } from "vscode/vscode/vs/editor/browser/editorExtensions";
4
+ import { IDropdownWithPrimaryActionViewItemOptions } from "@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common/vscode/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem";
5
+ import { MenuItemAction } from "vscode/vscode/vs/platform/actions/common/actions";
6
+ import { IMenuService } from "vscode/vscode/vs/platform/actions/common/actions.service";
7
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
8
+ import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
9
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
10
+ import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
11
+ import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
12
+ import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
13
+ import { Themable } from "vscode/vscode/vs/platform/theme/common/themeService";
14
+ import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
15
+ import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
16
+ import { IWorkbenchLayoutService } from "vscode/vscode/vs/workbench/services/layout/browser/layoutService.service";
17
+ import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
18
+ export declare class DebugToolBar extends Themable implements IWorkbenchContribution {
19
+ private readonly notificationService;
20
+ private readonly telemetryService;
21
+ private readonly debugService;
22
+ private readonly layoutService;
23
+ private readonly storageService;
24
+ private readonly configurationService;
25
+ private readonly instantiationService;
26
+ private $el;
27
+ private dragArea;
28
+ private actionBar;
29
+ private activeActions;
30
+ private updateScheduler;
31
+ private debugToolBarMenu;
32
+ private isVisible;
33
+ private isBuilt;
34
+ private readonly stopActionViewItemDisposables;
35
+ private readonly auxWindowCoordinates;
36
+ private readonly trackPixelRatioListener;
37
+ constructor(notificationService: INotificationService, telemetryService: ITelemetryService, debugService: IDebugService, layoutService: IWorkbenchLayoutService, storageService: IStorageService, configurationService: IConfigurationService, themeService: IThemeService, instantiationService: IInstantiationService, menuService: IMenuService, contextKeyService: IContextKeyService);
38
+ private registerListeners;
39
+ private getCurrentXPercent;
40
+ private getCurrentYPosition;
41
+ private storePosition;
42
+ updateStyles(): void;
43
+ private getStoredXPosition;
44
+ private getStoredYPosition;
45
+ private setCoordinates;
46
+ private get yDefault();
47
+ private _yRange;
48
+ private get yRange();
49
+ private show;
50
+ private doShowInActiveContainer;
51
+ private hide;
52
+ dispose(): void;
53
+ }
54
+ export declare function createDisconnectMenuItemAction(action: MenuItemAction, disposables: DisposableStore, accessor: ServicesAccessor, options: IDropdownWithPrimaryActionViewItemOptions): IActionViewItem | undefined;