@codingame/monaco-vscode-task-service-override 20.4.1 → 21.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 (27) hide show
  1. package/index.d.ts +14 -1
  2. package/index.js +87 -2
  3. package/package.json +11 -11
  4. package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.d.ts +8 -2
  5. package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +119 -110
  6. package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +3 -3
  7. package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +52 -52
  8. package/vscode/src/vs/workbench/contrib/tasks/browser/taskProblemMonitor.d.ts +20 -0
  9. package/vscode/src/vs/workbench/contrib/tasks/browser/taskProblemMonitor.js +75 -0
  10. package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +19 -19
  11. package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.d.ts +1 -1
  12. package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +1 -1
  13. package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.d.ts +2 -2
  14. package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +10 -10
  15. package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.d.ts +1 -1
  16. package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +3 -3
  17. package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.d.ts +8 -2
  18. package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +70 -68
  19. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +41 -41
  20. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +8 -8
  21. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +88 -88
  22. package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.d.ts +3 -3
  23. package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +1 -1
  24. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +70 -70
  25. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +17 -17
  26. package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.d.ts +7 -2
  27. package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +4 -4
package/index.d.ts CHANGED
@@ -1,2 +1,15 @@
1
1
  import type { IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
2
- export default function getServiceOverride(): IEditorOverrideServices;
2
+ export interface ForcedSupportedExecutions {
3
+ custom?: boolean;
4
+ shell?: boolean;
5
+ process?: boolean;
6
+ }
7
+ export interface TaskServiceOverrideParams {
8
+ /**
9
+ * By default, only custom tasks are supported
10
+ * When using the VSCode server, the server registers all the task types as supported
11
+ * But if the user has registered custom terminal backends, they may want to force support for other task types
12
+ */
13
+ forcedSupportedExecutions?: ForcedSupportedExecutions;
14
+ }
15
+ export default function getServiceOverride({ forcedSupportedExecutions }?: TaskServiceOverrideParams): IEditorOverrideServices;
package/index.js CHANGED
@@ -1,12 +1,97 @@
1
1
 
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
2
3
  import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
3
4
  import { ITaskService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskService.service';
4
5
  import { TaskService } from './vscode/src/vs/workbench/contrib/tasks/browser/taskService.js';
6
+ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
7
+ import { IMarkerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service';
8
+ import { IOutputService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/output/common/output.service';
9
+ import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
10
+ import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
11
+ import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
12
+ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
13
+ import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
14
+ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
15
+ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
16
+ import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service';
17
+ import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
18
+ import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
19
+ import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
20
+ import { IConfigurationResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.service';
21
+ import { ITerminalService, ITerminalGroupService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
22
+ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
23
+ import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
24
+ import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
25
+ import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
26
+ import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
27
+ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
28
+ import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
29
+ import { ITerminalProfileResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service';
30
+ import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
31
+ import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
32
+ import { IPreferencesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service';
33
+ import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
34
+ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
35
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
36
+ import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
37
+ import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
38
+ import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
39
+ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
40
+ import { IWorkspaceTrustRequestService, IWorkspaceTrustManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
41
+ import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
5
42
  import './vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js';
6
43
 
7
- function getServiceOverride() {
44
+ let CustomTaskService = class CustomTaskService extends TaskService {
45
+ constructor(forcedSupportedExecutions, _configurationService, _markerService, _outputService, _paneCompositeService, _viewsService, _commandService, _editorService, _fileService, _contextService, _telemetryService, _textFileService, _modelService, _extensionService, _quickInputService, _configurationResolverService, _terminalService, _terminalGroupService, _storageService, _progressService, _openerService, _dialogService, _notificationService, _contextKeyService, _environmentService, _terminalProfileResolverService, _pathService, _textModelResolverService, _preferencesService, _viewDescriptorService, _workspaceTrustRequestService, _workspaceTrustManagementService, _logService, _themeService, _lifecycleService, remoteAgentService, _instantiationService, _chatService, _chatAgentService) {
46
+ super(_configurationService, _markerService, _outputService, _paneCompositeService, _viewsService, _commandService, _editorService, _fileService, _contextService, _telemetryService, _textFileService, _modelService, _extensionService, _quickInputService, _configurationResolverService, _terminalService, _terminalGroupService, _storageService, _progressService, _openerService, _dialogService, _notificationService, _contextKeyService, _environmentService, _terminalProfileResolverService, _pathService, _textModelResolverService, _preferencesService, _viewDescriptorService, _workspaceTrustRequestService, _workspaceTrustManagementService, _logService, _themeService, _lifecycleService, remoteAgentService, _instantiationService, _chatService, _chatAgentService);
47
+ if (forcedSupportedExecutions != null) {
48
+ this.registerSupportedExecutions(forcedSupportedExecutions.custom, forcedSupportedExecutions.shell, forcedSupportedExecutions.process);
49
+ }
50
+ }
51
+ };
52
+ CustomTaskService = __decorate([
53
+ __param(1, IConfigurationService),
54
+ __param(2, IMarkerService),
55
+ __param(3, IOutputService),
56
+ __param(4, IPaneCompositePartService),
57
+ __param(5, IViewsService),
58
+ __param(6, ICommandService),
59
+ __param(7, IEditorService),
60
+ __param(8, IFileService),
61
+ __param(9, IWorkspaceContextService),
62
+ __param(10, ITelemetryService),
63
+ __param(11, ITextFileService),
64
+ __param(12, IModelService),
65
+ __param(13, IExtensionService),
66
+ __param(14, IQuickInputService),
67
+ __param(15, IConfigurationResolverService),
68
+ __param(16, ITerminalService),
69
+ __param(17, ITerminalGroupService),
70
+ __param(18, IStorageService),
71
+ __param(19, IProgressService),
72
+ __param(20, IOpenerService),
73
+ __param(21, IDialogService),
74
+ __param(22, INotificationService),
75
+ __param(23, IContextKeyService),
76
+ __param(24, IWorkbenchEnvironmentService),
77
+ __param(25, ITerminalProfileResolverService),
78
+ __param(26, IPathService),
79
+ __param(27, ITextModelService),
80
+ __param(28, IPreferencesService),
81
+ __param(29, IViewDescriptorService),
82
+ __param(30, IWorkspaceTrustRequestService),
83
+ __param(31, IWorkspaceTrustManagementService),
84
+ __param(32, ILogService),
85
+ __param(33, IThemeService),
86
+ __param(34, ILifecycleService),
87
+ __param(35, IRemoteAgentService),
88
+ __param(36, IInstantiationService),
89
+ __param(37, IChatService),
90
+ __param(38, IChatAgentService)
91
+ ], CustomTaskService);
92
+ function getServiceOverride({ forcedSupportedExecutions } = {}) {
8
93
  return {
9
- [ITaskService.toString()]: new SyncDescriptor(TaskService, [], true)
94
+ [ITaskService.toString()]: new SyncDescriptor(CustomTaskService, [forcedSupportedExecutions], true)
10
95
  };
11
96
  }
12
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-task-service-override",
3
- "version": "20.4.1",
3
+ "version": "21.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - task service-override",
6
6
  "keywords": [],
@@ -15,16 +15,16 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "20.4.1",
19
- "@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.4.1",
20
- "@codingame/monaco-vscode-6883db80-c313-54eb-8fbc-5872c56b0326-common": "20.4.1",
21
- "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "20.4.1",
22
- "@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "20.4.1",
23
- "@codingame/monaco-vscode-api": "20.4.1",
24
- "@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common": "20.4.1",
25
- "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "20.4.1",
26
- "@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "20.4.1",
27
- "@codingame/monaco-vscode-ec8fe440-1fd1-523d-ad0f-c0f5a80cf451-common": "20.4.1"
18
+ "@codingame/monaco-vscode-05a2a821-e4de-5941-b7f9-bbf01c09f229-common": "21.0.0",
19
+ "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "21.0.0",
20
+ "@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common": "21.0.0",
21
+ "@codingame/monaco-vscode-625898ab-0e33-5b7f-a3ae-29c10271dc1c-common": "21.0.0",
22
+ "@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "21.0.0",
23
+ "@codingame/monaco-vscode-api": "21.0.0",
24
+ "@codingame/monaco-vscode-b6d52a6d-8c8e-51f5-bcd2-1722295e31d9-common": "21.0.0",
25
+ "@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common": "21.0.0",
26
+ "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "21.0.0",
27
+ "@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "21.0.0"
28
28
  },
29
29
  "main": "index.js",
30
30
  "module": "index.js",
@@ -7,6 +7,7 @@ import * as nls from "@codingame/monaco-vscode-api/vscode/vs/nls";
7
7
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
8
8
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
9
9
  import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
10
+ import { IMarkerData } from "@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers";
10
11
  import { IMarkerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service";
11
12
  import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
12
13
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
@@ -27,7 +28,7 @@ import { ITerminalGroupService } from "@codingame/monaco-vscode-api/vscode/vs/wo
27
28
  import { ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
28
29
  import { ITerminalProfileResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service";
29
30
  import { ConfiguringTask, ContributedTask, CustomTask, ExecutionEngine, ITaskEvent, ITaskIdentifier, Task, TaskRunSource, TaskSorter } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/tasks";
30
- import { ICustomizationProperties, IProblemMatcherRunOptions, ITaskFilter, ITaskProvider, IWorkspaceFolderTaskResult } from "@codingame/monaco-vscode-ec8fe440-1fd1-523d-ad0f-c0f5a80cf451-common/vscode/vs/workbench/contrib/tasks/common/taskService";
31
+ import { ICustomizationProperties, IProblemMatcherRunOptions, ITaskFilter, ITaskProvider, IWorkspaceFolderTaskResult } from "@codingame/monaco-vscode-05a2a821-e4de-5941-b7f9-bbf01c09f229-common/vscode/vs/workbench/contrib/tasks/common/taskService";
31
32
  import { ITaskService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskService.service";
32
33
  import { ITaskSummary, ITaskSystem, ITaskSystemInfo, ITaskTerminateResponse } from "../common/taskSystem.js";
33
34
  import * as TaskConfig from "../common/taskConfiguration.js";
@@ -131,6 +132,7 @@ export declare abstract class AbstractTaskService extends Disposable implements
131
132
  private _recentlyUsedTasks;
132
133
  private _persistentTasks;
133
134
  protected _taskRunningState: IContextKey<boolean>;
135
+ protected _tasksAvailableState: IContextKey<boolean>;
134
136
  protected _outputChannel: IOutputChannel;
135
137
  protected readonly _onDidStateChange: Emitter<ITaskEvent>;
136
138
  private _waitForAllSupportedExecutions;
@@ -238,9 +240,13 @@ export declare abstract class AbstractTaskService extends Disposable implements
238
240
  private _getCustomTaskPromises;
239
241
  private _getLegacyTaskConfigurations;
240
242
  getWorkspaceTasks(runSource?: TaskRunSource): Promise<Map<string, IWorkspaceFolderTaskResult>>;
243
+ getTaskProblems(instanceId: number): Map<string, {
244
+ resources: URI[];
245
+ markers: IMarkerData[];
246
+ }> | undefined;
241
247
  private _updateWorkspaceTasks;
242
248
  private _getAFolder;
243
- getTerminalForTask(task: Task): URI | undefined;
249
+ getTerminalsForTasks(task: (Task | Task[])): URI[] | undefined;
244
250
  protected _computeWorkspaceTasks(runSource?: TaskRunSource): Promise<Map<string, IWorkspaceFolderTaskResult>>;
245
251
  private get _jsonTasksSupported();
246
252
  private _computeWorkspaceFolderTasks;