@codingame/monaco-vscode-task-service-override 21.5.1 → 22.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 (20) hide show
  1. package/index.js +5 -3
  2. package/package.json +12 -11
  3. package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.d.ts +10 -3
  4. package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +216 -121
  5. package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +3 -3
  6. package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +58 -49
  7. package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +17 -17
  8. package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +1 -1
  9. package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +10 -10
  10. package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.d.ts +1 -1
  11. package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +3 -3
  12. package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.d.ts +2 -0
  13. package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +39 -23
  14. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +41 -41
  15. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +8 -8
  16. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +96 -88
  17. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +70 -70
  18. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +4 -0
  19. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +23 -19
  20. package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +4 -4
package/index.js CHANGED
@@ -40,10 +40,11 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
40
40
  import { IWorkspaceTrustRequestService, IWorkspaceTrustManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
41
41
  import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
42
42
  import './vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js';
43
+ import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
43
44
 
44
45
  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);
46
+ 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, _hostService) {
47
+ 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, _hostService);
47
48
  if (forcedSupportedExecutions != null) {
48
49
  this.registerSupportedExecutions(forcedSupportedExecutions.custom, forcedSupportedExecutions.shell, forcedSupportedExecutions.process);
49
50
  }
@@ -87,7 +88,8 @@ CustomTaskService = __decorate([
87
88
  __param(35, IRemoteAgentService),
88
89
  __param(36, IInstantiationService),
89
90
  __param(37, IChatService),
90
- __param(38, IChatAgentService)
91
+ __param(38, IChatAgentService),
92
+ __param(39, IHostService)
91
93
  ], CustomTaskService);
92
94
  function getServiceOverride({ forcedSupportedExecutions } = {}) {
93
95
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-task-service-override",
3
- "version": "21.5.1",
3
+ "version": "22.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,17 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-05a2a821-e4de-5941-b7f9-bbf01c09f229-common": "21.5.1",
19
- "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "21.5.1",
20
- "@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common": "21.5.1",
21
- "@codingame/monaco-vscode-625898ab-0e33-5b7f-a3ae-29c10271dc1c-common": "21.5.1",
22
- "@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "21.5.1",
23
- "@codingame/monaco-vscode-api": "21.5.1",
24
- "@codingame/monaco-vscode-b6d52a6d-8c8e-51f5-bcd2-1722295e31d9-common": "21.5.1",
25
- "@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common": "21.5.1",
26
- "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "21.5.1",
27
- "@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "21.5.1"
18
+ "@codingame/monaco-vscode-05a2a821-e4de-5941-b7f9-bbf01c09f229-common": "22.0.0",
19
+ "@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common": "22.0.0",
20
+ "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "22.0.0",
21
+ "@codingame/monaco-vscode-625898ab-0e33-5b7f-a3ae-29c10271dc1c-common": "22.0.0",
22
+ "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "22.0.0",
23
+ "@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "22.0.0",
24
+ "@codingame/monaco-vscode-api": "22.0.0",
25
+ "@codingame/monaco-vscode-b6d52a6d-8c8e-51f5-bcd2-1722295e31d9-common": "22.0.0",
26
+ "@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common": "22.0.0",
27
+ "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "22.0.0",
28
+ "@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "22.0.0"
28
29
  },
29
30
  "main": "index.js",
30
31
  "module": "index.js",
@@ -43,15 +43,16 @@ import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/t
43
43
  import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
44
44
  import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
45
45
  import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
46
- import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
47
46
  import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
48
47
  import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
49
48
  import { IPaneCompositePartService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
50
49
  import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
51
50
  import { IPreferencesService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service";
52
51
  import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
53
- import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
52
+ import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
54
53
  import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
54
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
55
+ import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
55
56
  export declare namespace ConfigureTaskAction {
56
57
  const ID = "workbench.action.tasks.configureTaskRunner";
57
58
  const TEXT: nls.ILocalizedString;
@@ -106,6 +107,7 @@ export declare abstract class AbstractTaskService extends Disposable implements
106
107
  private readonly _instantiationService;
107
108
  private readonly _chatService;
108
109
  private readonly _chatAgentService;
110
+ private readonly _hostService;
109
111
  private static readonly RecentlyUsedTasks_Key;
110
112
  private static readonly RecentlyUsedTasks_KeyV2;
111
113
  private static readonly PersistentTasks_Key;
@@ -148,10 +150,15 @@ export declare abstract class AbstractTaskService extends Disposable implements
148
150
  get isReconnected(): boolean;
149
151
  private _onDidChangeTaskProviders;
150
152
  onDidChangeTaskProviders: Event<void>;
153
+ private readonly _taskRunStartTimes;
154
+ private readonly _taskRunSources;
151
155
  private _activatedTaskProviders;
152
- constructor(_configurationService: IConfigurationService, _markerService: IMarkerService, _outputService: IOutputService, _paneCompositeService: IPaneCompositePartService, _viewsService: IViewsService, _commandService: ICommandService, _editorService: IEditorService, _fileService: IFileService, _contextService: IWorkspaceContextService, _telemetryService: ITelemetryService, _textFileService: ITextFileService, _modelService: IModelService, _extensionService: IExtensionService, _quickInputService: IQuickInputService, _configurationResolverService: IConfigurationResolverService, _terminalService: ITerminalService, _terminalGroupService: ITerminalGroupService, _storageService: IStorageService, _progressService: IProgressService, _openerService: IOpenerService, _dialogService: IDialogService, _notificationService: INotificationService, _contextKeyService: IContextKeyService, _environmentService: IWorkbenchEnvironmentService, _terminalProfileResolverService: ITerminalProfileResolverService, _pathService: IPathService, _textModelResolverService: ITextModelService, _preferencesService: IPreferencesService, _viewDescriptorService: IViewDescriptorService, _workspaceTrustRequestService: IWorkspaceTrustRequestService, _workspaceTrustManagementService: IWorkspaceTrustManagementService, _logService: ILogService, _themeService: IThemeService, _lifecycleService: ILifecycleService, remoteAgentService: IRemoteAgentService, _instantiationService: IInstantiationService, _chatService: IChatService, _chatAgentService: IChatAgentService);
156
+ private readonly notification;
157
+ constructor(_configurationService: IConfigurationService, _markerService: IMarkerService, _outputService: IOutputService, _paneCompositeService: IPaneCompositePartService, _viewsService: IViewsService, _commandService: ICommandService, _editorService: IEditorService, _fileService: IFileService, _contextService: IWorkspaceContextService, _telemetryService: ITelemetryService, _textFileService: ITextFileService, _modelService: IModelService, _extensionService: IExtensionService, _quickInputService: IQuickInputService, _configurationResolverService: IConfigurationResolverService, _terminalService: ITerminalService, _terminalGroupService: ITerminalGroupService, _storageService: IStorageService, _progressService: IProgressService, _openerService: IOpenerService, _dialogService: IDialogService, _notificationService: INotificationService, _contextKeyService: IContextKeyService, _environmentService: IWorkbenchEnvironmentService, _terminalProfileResolverService: ITerminalProfileResolverService, _pathService: IPathService, _textModelResolverService: ITextModelService, _preferencesService: IPreferencesService, _viewDescriptorService: IViewDescriptorService, _workspaceTrustRequestService: IWorkspaceTrustRequestService, _workspaceTrustManagementService: IWorkspaceTrustManagementService, _logService: ILogService, _themeService: IThemeService, _lifecycleService: ILifecycleService, remoteAgentService: IRemoteAgentService, _instantiationService: IInstantiationService, _chatService: IChatService, _chatAgentService: IChatAgentService, _hostService: IHostService);
153
158
  registerSupportedExecutions(custom?: boolean, shell?: boolean, process?: boolean): void;
154
159
  private _attemptTaskReconnection;
160
+ private _handleLongRunningTaskCompletion;
161
+ private _formatTaskDuration;
155
162
  private _reconnectTasks;
156
163
  get onDidStateChange(): Event<ITaskEvent>;
157
164
  get supportsMultipleTaskExecutions(): boolean;