@theia/task 1.77.0-next.99 → 1.78.0-next.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 (252) hide show
  1. package/lib/browser/index.d.ts +6 -6
  2. package/lib/browser/index.d.ts.map +1 -1
  3. package/lib/browser/index.js +6 -9
  4. package/lib/browser/index.js.map +1 -1
  5. package/lib/browser/process/process-task-contribution.d.ts +2 -2
  6. package/lib/browser/process/process-task-contribution.d.ts.map +1 -1
  7. package/lib/browser/process/process-task-contribution.js +8 -12
  8. package/lib/browser/process/process-task-contribution.js.map +1 -1
  9. package/lib/browser/process/process-task-frontend-module.js +7 -10
  10. package/lib/browser/process/process-task-frontend-module.js.map +1 -1
  11. package/lib/browser/process/process-task-resolver.d.ts +4 -4
  12. package/lib/browser/process/process-task-resolver.d.ts.map +1 -1
  13. package/lib/browser/process/process-task-resolver.js +18 -24
  14. package/lib/browser/process/process-task-resolver.js.map +1 -1
  15. package/lib/browser/process/process-task-resolver.spec.js +49 -52
  16. package/lib/browser/process/process-task-resolver.spec.js.map +1 -1
  17. package/lib/browser/provided-task-configurations.d.ts +3 -3
  18. package/lib/browser/provided-task-configurations.d.ts.map +1 -1
  19. package/lib/browser/provided-task-configurations.js +18 -23
  20. package/lib/browser/provided-task-configurations.js.map +1 -1
  21. package/lib/browser/provided-task-configurations.spec.js +14 -16
  22. package/lib/browser/provided-task-configurations.spec.js.map +1 -1
  23. package/lib/browser/quick-open-task.d.ts +7 -7
  24. package/lib/browser/quick-open-task.d.ts.map +1 -1
  25. package/lib/browser/quick-open-task.js +160 -199
  26. package/lib/browser/quick-open-task.js.map +1 -1
  27. package/lib/browser/task-configuration-manager.d.ts +4 -4
  28. package/lib/browser/task-configuration-manager.d.ts.map +1 -1
  29. package/lib/browser/task-configuration-manager.js +62 -78
  30. package/lib/browser/task-configuration-manager.js.map +1 -1
  31. package/lib/browser/task-configuration-model.d.ts +1 -1
  32. package/lib/browser/task-configuration-model.d.ts.map +1 -1
  33. package/lib/browser/task-configuration-model.js +9 -13
  34. package/lib/browser/task-configuration-model.js.map +1 -1
  35. package/lib/browser/task-configurations.d.ts +6 -6
  36. package/lib/browser/task-configurations.d.ts.map +1 -1
  37. package/lib/browser/task-configurations.js +41 -55
  38. package/lib/browser/task-configurations.js.map +1 -1
  39. package/lib/browser/task-context-key-service.js +13 -21
  40. package/lib/browser/task-context-key-service.js.map +1 -1
  41. package/lib/browser/task-contribution.d.ts +1 -1
  42. package/lib/browser/task-contribution.d.ts.map +1 -1
  43. package/lib/browser/task-contribution.js +20 -27
  44. package/lib/browser/task-contribution.js.map +1 -1
  45. package/lib/browser/task-definition-registry.d.ts +1 -1
  46. package/lib/browser/task-definition-registry.d.ts.map +1 -1
  47. package/lib/browser/task-definition-registry.js +12 -15
  48. package/lib/browser/task-definition-registry.js.map +1 -1
  49. package/lib/browser/task-definition-registry.spec.js +20 -22
  50. package/lib/browser/task-definition-registry.spec.js.map +1 -1
  51. package/lib/browser/task-frontend-contribution.d.ts +5 -5
  52. package/lib/browser/task-frontend-contribution.d.ts.map +1 -1
  53. package/lib/browser/task-frontend-contribution.js +83 -106
  54. package/lib/browser/task-frontend-contribution.js.map +1 -1
  55. package/lib/browser/task-frontend-module.d.ts +1 -1
  56. package/lib/browser/task-frontend-module.d.ts.map +1 -1
  57. package/lib/browser/task-frontend-module.js +64 -66
  58. package/lib/browser/task-frontend-module.js.map +1 -1
  59. package/lib/browser/task-name-resolver.d.ts +3 -3
  60. package/lib/browser/task-name-resolver.d.ts.map +1 -1
  61. package/lib/browser/task-name-resolver.js +11 -16
  62. package/lib/browser/task-name-resolver.js.map +1 -1
  63. package/lib/browser/task-node.d.ts +1 -1
  64. package/lib/browser/task-node.d.ts.map +1 -1
  65. package/lib/browser/task-node.js +1 -5
  66. package/lib/browser/task-node.js.map +1 -1
  67. package/lib/browser/task-problem-matcher-registry.d.ts +2 -2
  68. package/lib/browser/task-problem-matcher-registry.d.ts.map +1 -1
  69. package/lib/browser/task-problem-matcher-registry.js +64 -72
  70. package/lib/browser/task-problem-matcher-registry.js.map +1 -1
  71. package/lib/browser/task-problem-pattern-registry.d.ts +1 -1
  72. package/lib/browser/task-problem-pattern-registry.d.ts.map +1 -1
  73. package/lib/browser/task-problem-pattern-registry.js +30 -37
  74. package/lib/browser/task-problem-pattern-registry.js.map +1 -1
  75. package/lib/browser/task-schema-updater.d.ts +3 -3
  76. package/lib/browser/task-schema-updater.d.ts.map +1 -1
  77. package/lib/browser/task-schema-updater.js +116 -127
  78. package/lib/browser/task-schema-updater.js.map +1 -1
  79. package/lib/browser/task-service.d.ts +19 -15
  80. package/lib/browser/task-service.d.ts.map +1 -1
  81. package/lib/browser/task-service.js +170 -203
  82. package/lib/browser/task-service.js.map +1 -1
  83. package/lib/browser/task-service.spec.js +21 -24
  84. package/lib/browser/task-service.spec.js.map +1 -1
  85. package/lib/browser/task-source-resolver.d.ts +2 -2
  86. package/lib/browser/task-source-resolver.d.ts.map +1 -1
  87. package/lib/browser/task-source-resolver.js +10 -14
  88. package/lib/browser/task-source-resolver.js.map +1 -1
  89. package/lib/browser/task-templates.js +10 -13
  90. package/lib/browser/task-templates.js.map +1 -1
  91. package/lib/browser/task-terminal-widget-manager.d.ts +2 -2
  92. package/lib/browser/task-terminal-widget-manager.d.ts.map +1 -1
  93. package/lib/browser/task-terminal-widget-manager.js +39 -50
  94. package/lib/browser/task-terminal-widget-manager.js.map +1 -1
  95. package/lib/browser/tasks-monaco-contribution.js +1 -4
  96. package/lib/browser/tasks-monaco-contribution.js.map +1 -1
  97. package/lib/common/index.d.ts +4 -4
  98. package/lib/common/index.d.ts.map +1 -1
  99. package/lib/common/index.js +4 -7
  100. package/lib/common/index.js.map +1 -1
  101. package/lib/common/problem-matcher-protocol.js +17 -20
  102. package/lib/common/problem-matcher-protocol.js.map +1 -1
  103. package/lib/common/process/task-protocol.d.ts +1 -1
  104. package/lib/common/process/task-protocol.d.ts.map +1 -1
  105. package/lib/common/process/task-protocol.js +6 -9
  106. package/lib/common/process/task-protocol.js.map +1 -1
  107. package/lib/common/task-common-module.js +3 -6
  108. package/lib/common/task-common-module.js.map +1 -1
  109. package/lib/common/task-preferences.js +10 -14
  110. package/lib/common/task-preferences.js.map +1 -1
  111. package/lib/common/task-protocol.d.ts +1 -1
  112. package/lib/common/task-protocol.d.ts.map +1 -1
  113. package/lib/common/task-protocol.js +15 -18
  114. package/lib/common/task-protocol.js.map +1 -1
  115. package/lib/common/task-util.js +2 -6
  116. package/lib/common/task-util.js.map +1 -1
  117. package/lib/common/task-watcher.d.ts +1 -1
  118. package/lib/common/task-watcher.d.ts.map +1 -1
  119. package/lib/common/task-watcher.js +12 -15
  120. package/lib/common/task-watcher.js.map +1 -1
  121. package/lib/node/custom/custom-task-runner-backend-module.js +14 -17
  122. package/lib/node/custom/custom-task-runner-backend-module.js.map +1 -1
  123. package/lib/node/custom/custom-task-runner-contribution.d.ts +2 -2
  124. package/lib/node/custom/custom-task-runner-contribution.d.ts.map +1 -1
  125. package/lib/node/custom/custom-task-runner-contribution.js +8 -12
  126. package/lib/node/custom/custom-task-runner-contribution.js.map +1 -1
  127. package/lib/node/custom/custom-task-runner.d.ts +4 -4
  128. package/lib/node/custom/custom-task-runner.d.ts.map +1 -1
  129. package/lib/node/custom/custom-task-runner.js +15 -21
  130. package/lib/node/custom/custom-task-runner.js.map +1 -1
  131. package/lib/node/custom/custom-task.d.ts +4 -4
  132. package/lib/node/custom/custom-task.d.ts.map +1 -1
  133. package/lib/node/custom/custom-task.js +15 -19
  134. package/lib/node/custom/custom-task.js.map +1 -1
  135. package/lib/node/index.d.ts +3 -3
  136. package/lib/node/index.d.ts.map +1 -1
  137. package/lib/node/index.js +3 -6
  138. package/lib/node/index.js.map +1 -1
  139. package/lib/node/process/process-task-runner-backend-module.js +14 -17
  140. package/lib/node/process/process-task-runner-backend-module.js.map +1 -1
  141. package/lib/node/process/process-task-runner-contribution.d.ts +2 -2
  142. package/lib/node/process/process-task-runner-contribution.d.ts.map +1 -1
  143. package/lib/node/process/process-task-runner-contribution.js +8 -12
  144. package/lib/node/process/process-task-runner-contribution.js.map +1 -1
  145. package/lib/node/process/process-task-runner.d.ts +5 -5
  146. package/lib/node/process/process-task-runner.d.ts.map +1 -1
  147. package/lib/node/process/process-task-runner.js +37 -44
  148. package/lib/node/process/process-task-runner.js.map +1 -1
  149. package/lib/node/process/process-task.d.ts +5 -5
  150. package/lib/node/process/process-task.d.ts.map +1 -1
  151. package/lib/node/process/process-task.js +16 -21
  152. package/lib/node/process/process-task.js.map +1 -1
  153. package/lib/node/process/process-task.spec.js +6 -8
  154. package/lib/node/process/process-task.spec.js.map +1 -1
  155. package/lib/node/task-abstract-line-matcher.d.ts +1 -1
  156. package/lib/node/task-abstract-line-matcher.d.ts.map +1 -1
  157. package/lib/node/task-abstract-line-matcher.js +28 -33
  158. package/lib/node/task-abstract-line-matcher.js.map +1 -1
  159. package/lib/node/task-backend-application-contribution.d.ts +1 -1
  160. package/lib/node/task-backend-application-contribution.d.ts.map +1 -1
  161. package/lib/node/task-backend-application-contribution.js +12 -17
  162. package/lib/node/task-backend-application-contribution.js.map +1 -1
  163. package/lib/node/task-backend-module.js +27 -29
  164. package/lib/node/task-backend-module.js.map +1 -1
  165. package/lib/node/task-line-matchers.d.ts +2 -2
  166. package/lib/node/task-line-matchers.d.ts.map +1 -1
  167. package/lib/node/task-line-matchers.js +3 -8
  168. package/lib/node/task-line-matchers.js.map +1 -1
  169. package/lib/node/task-manager.d.ts +2 -2
  170. package/lib/node/task-manager.d.ts.map +1 -1
  171. package/lib/node/task-manager.js +9 -13
  172. package/lib/node/task-manager.js.map +1 -1
  173. package/lib/node/task-problem-collector.d.ts +1 -1
  174. package/lib/node/task-problem-collector.d.ts.map +1 -1
  175. package/lib/node/task-problem-collector.js +9 -13
  176. package/lib/node/task-problem-collector.js.map +1 -1
  177. package/lib/node/task-problem-collector.spec.js +63 -65
  178. package/lib/node/task-problem-collector.spec.js.map +1 -1
  179. package/lib/node/task-runner-protocol.d.ts +2 -2
  180. package/lib/node/task-runner-protocol.d.ts.map +1 -1
  181. package/lib/node/task-runner-protocol.js +1 -4
  182. package/lib/node/task-runner-protocol.js.map +1 -1
  183. package/lib/node/task-runner.d.ts +2 -2
  184. package/lib/node/task-runner.d.ts.map +1 -1
  185. package/lib/node/task-runner.js +13 -20
  186. package/lib/node/task-runner.js.map +1 -1
  187. package/lib/node/task-server.d.ts +5 -5
  188. package/lib/node/task-server.d.ts.map +1 -1
  189. package/lib/node/task-server.js +21 -27
  190. package/lib/node/task-server.js.map +1 -1
  191. package/lib/node/task-server.slow-spec.js +58 -60
  192. package/lib/node/task-server.slow-spec.js.map +1 -1
  193. package/lib/node/task.d.ts +2 -2
  194. package/lib/node/task.d.ts.map +1 -1
  195. package/lib/node/task.js +12 -16
  196. package/lib/node/task.js.map +1 -1
  197. package/lib/node/test/task-test-container.js +28 -32
  198. package/lib/node/test/task-test-container.js.map +1 -1
  199. package/package.json +24 -13
  200. package/src/browser/index.ts +6 -6
  201. package/src/browser/process/process-task-contribution.ts +2 -2
  202. package/src/browser/process/process-task-frontend-module.ts +3 -3
  203. package/src/browser/process/process-task-resolver.spec.ts +4 -4
  204. package/src/browser/process/process-task-resolver.ts +4 -4
  205. package/src/browser/provided-task-configurations.spec.ts +4 -4
  206. package/src/browser/provided-task-configurations.ts +3 -3
  207. package/src/browser/quick-open-task.ts +8 -8
  208. package/src/browser/task-configuration-manager.ts +6 -6
  209. package/src/browser/task-configuration-model.ts +2 -2
  210. package/src/browser/task-configurations.ts +6 -6
  211. package/src/browser/task-contribution.ts +1 -1
  212. package/src/browser/task-definition-registry.spec.ts +2 -2
  213. package/src/browser/task-definition-registry.ts +1 -1
  214. package/src/browser/task-frontend-contribution.ts +5 -5
  215. package/src/browser/task-frontend-module.ts +22 -22
  216. package/src/browser/task-name-resolver.ts +3 -3
  217. package/src/browser/task-node.ts +1 -1
  218. package/src/browser/task-problem-matcher-registry.ts +2 -2
  219. package/src/browser/task-problem-pattern-registry.ts +1 -1
  220. package/src/browser/task-schema-updater.ts +5 -5
  221. package/src/browser/task-service.spec.ts +4 -4
  222. package/src/browser/task-service.ts +20 -16
  223. package/src/browser/task-source-resolver.ts +2 -2
  224. package/src/browser/task-terminal-widget-manager.ts +3 -3
  225. package/src/common/index.ts +4 -4
  226. package/src/common/process/task-protocol.ts +1 -1
  227. package/src/common/task-common-module.ts +1 -1
  228. package/src/common/task-protocol.ts +1 -1
  229. package/src/common/task-watcher.ts +1 -1
  230. package/src/node/custom/custom-task-runner-backend-module.ts +4 -4
  231. package/src/node/custom/custom-task-runner-contribution.ts +2 -2
  232. package/src/node/custom/custom-task-runner.ts +4 -4
  233. package/src/node/custom/custom-task.ts +4 -4
  234. package/src/node/index.ts +3 -3
  235. package/src/node/process/process-task-runner-backend-module.ts +4 -4
  236. package/src/node/process/process-task-runner-contribution.ts +2 -2
  237. package/src/node/process/process-task-runner.ts +5 -5
  238. package/src/node/process/process-task.spec.ts +1 -1
  239. package/src/node/process/process-task.ts +5 -5
  240. package/src/node/task-abstract-line-matcher.ts +1 -1
  241. package/src/node/task-backend-application-contribution.ts +1 -1
  242. package/src/node/task-backend-module.ts +9 -9
  243. package/src/node/task-line-matchers.ts +2 -2
  244. package/src/node/task-manager.ts +2 -2
  245. package/src/node/task-problem-collector.spec.ts +2 -2
  246. package/src/node/task-problem-collector.ts +3 -3
  247. package/src/node/task-runner-protocol.ts +2 -2
  248. package/src/node/task-runner.ts +2 -2
  249. package/src/node/task-server.slow-spec.ts +4 -4
  250. package/src/node/task-server.ts +8 -8
  251. package/src/node/task.ts +2 -2
  252. package/src/node/test/task-test-container.ts +1 -1
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2017 Ericsson and others.
4
3
  //
@@ -14,75 +13,74 @@
14
13
  //
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const inversify_1 = require("@theia/core/shared/inversify");
19
- const browser_1 = require("@theia/core/lib/browser");
20
- const common_1 = require("@theia/core/lib/common");
21
- const messaging_1 = require("@theia/core/lib/browser/messaging");
22
- const quick_open_task_1 = require("./quick-open-task");
23
- const task_contribution_1 = require("./task-contribution");
24
- const task_service_1 = require("./task-service");
25
- const task_configurations_1 = require("./task-configurations");
26
- const provided_task_configurations_1 = require("./provided-task-configurations");
27
- const task_frontend_contribution_1 = require("./task-frontend-contribution");
28
- const task_common_module_1 = require("../common/task-common-module");
29
- const task_protocol_1 = require("../common/task-protocol");
30
- const task_watcher_1 = require("../common/task-watcher");
31
- const process_task_frontend_module_1 = require("./process/process-task-frontend-module");
32
- const task_schema_updater_1 = require("./task-schema-updater");
33
- const task_definition_registry_1 = require("./task-definition-registry");
34
- const task_problem_matcher_registry_1 = require("./task-problem-matcher-registry");
35
- const task_problem_pattern_registry_1 = require("./task-problem-pattern-registry");
36
- const task_configuration_manager_1 = require("./task-configuration-manager");
37
- const task_preferences_1 = require("../common/task-preferences");
38
- require("../../src/browser/style/index.css");
39
- require("./tasks-monaco-contribution");
40
- const task_name_resolver_1 = require("./task-name-resolver");
41
- const task_source_resolver_1 = require("./task-source-resolver");
42
- const task_templates_1 = require("./task-templates");
43
- const task_terminal_widget_manager_1 = require("./task-terminal-widget-manager");
44
- const json_schema_store_1 = require("@theia/core/lib/browser/json-schema-store");
45
- const quick_access_1 = require("@theia/core/lib/browser/quick-input/quick-access");
46
- const task_context_key_service_1 = require("./task-context-key-service");
47
- const workspace_trust_service_1 = require("@theia/workspace/lib/browser/workspace-trust-service");
48
- exports.default = new inversify_1.ContainerModule(bind => {
49
- bind(task_frontend_contribution_1.TaskFrontendContribution).toSelf().inSingletonScope();
50
- bind(task_service_1.TaskService).toSelf().inSingletonScope();
51
- for (const identifier of [browser_1.FrontendApplicationContribution, common_1.CommandContribution, browser_1.KeybindingContribution, common_1.MenuContribution, quick_access_1.QuickAccessContribution]) {
52
- bind(identifier).toService(task_frontend_contribution_1.TaskFrontendContribution);
16
+ import { ContainerModule } from '@theia/core/shared/inversify';
17
+ import { FrontendApplicationContribution, KeybindingContribution } from '@theia/core/lib/browser';
18
+ import { CommandContribution, MenuContribution, bindRootContributionProvider, nls } from '@theia/core/lib/common';
19
+ import { WebSocketConnectionProvider } from '@theia/core/lib/browser/messaging';
20
+ import { QuickOpenTask, TaskTerminateQuickOpen, TaskRestartRunningQuickOpen, TaskRunningQuickOpen } from './quick-open-task.js';
21
+ import { TaskContribution, TaskProviderRegistry, TaskResolverRegistry } from './task-contribution.js';
22
+ import { TaskService } from './task-service.js';
23
+ import { TaskConfigurations } from './task-configurations.js';
24
+ import { ProvidedTaskConfigurations } from './provided-task-configurations.js';
25
+ import { TaskFrontendContribution } from './task-frontend-contribution.js';
26
+ import { createCommonBindings } from '../common/task-common-module.js';
27
+ import { TaskServer, taskPath } from '../common/task-protocol.js';
28
+ import { TaskWatcher } from '../common/task-watcher.js';
29
+ import { bindProcessTaskModule } from './process/process-task-frontend-module.js';
30
+ import { TaskSchemaUpdater } from './task-schema-updater.js';
31
+ import { TaskDefinitionRegistry } from './task-definition-registry.js';
32
+ import { ProblemMatcherRegistry } from './task-problem-matcher-registry.js';
33
+ import { ProblemPatternRegistry } from './task-problem-pattern-registry.js';
34
+ import { TaskConfigurationManager } from './task-configuration-manager.js';
35
+ import { bindTaskPreferences } from '../common/task-preferences.js';
36
+ import '../../src/browser/style/index.css';
37
+ import './tasks-monaco-contribution.js';
38
+ import { TaskNameResolver } from './task-name-resolver.js';
39
+ import { TaskSourceResolver } from './task-source-resolver.js';
40
+ import { TaskTemplateSelector } from './task-templates.js';
41
+ import { TaskTerminalWidgetManager } from './task-terminal-widget-manager.js';
42
+ import { JsonSchemaContribution } from '@theia/core/lib/browser/json-schema-store';
43
+ import { QuickAccessContribution } from '@theia/core/lib/browser/quick-input/quick-access';
44
+ import { TaskContextKeyService } from './task-context-key-service.js';
45
+ import { WorkspaceRestrictionContribution } from '@theia/workspace/lib/browser/workspace-trust-service';
46
+ export default new ContainerModule(bind => {
47
+ bind(TaskFrontendContribution).toSelf().inSingletonScope();
48
+ bind(TaskService).toSelf().inSingletonScope();
49
+ for (const identifier of [FrontendApplicationContribution, CommandContribution, KeybindingContribution, MenuContribution, QuickAccessContribution]) {
50
+ bind(identifier).toService(TaskFrontendContribution);
53
51
  }
54
- bind(quick_open_task_1.QuickOpenTask).toSelf().inSingletonScope();
55
- bind(quick_open_task_1.TaskRunningQuickOpen).toSelf().inSingletonScope();
56
- bind(quick_open_task_1.TaskTerminateQuickOpen).toSelf().inSingletonScope();
57
- bind(quick_open_task_1.TaskRestartRunningQuickOpen).toSelf().inSingletonScope();
58
- bind(task_configurations_1.TaskConfigurations).toSelf().inSingletonScope();
59
- bind(provided_task_configurations_1.ProvidedTaskConfigurations).toSelf().inSingletonScope();
60
- bind(task_configuration_manager_1.TaskConfigurationManager).toSelf().inSingletonScope();
61
- bind(task_protocol_1.TaskServer).toDynamicValue(ctx => {
62
- const connection = ctx.container.get(messaging_1.WebSocketConnectionProvider);
63
- const taskWatcher = ctx.container.get(task_watcher_1.TaskWatcher);
64
- return connection.createProxy(task_protocol_1.taskPath, taskWatcher.getTaskClient());
52
+ bind(QuickOpenTask).toSelf().inSingletonScope();
53
+ bind(TaskRunningQuickOpen).toSelf().inSingletonScope();
54
+ bind(TaskTerminateQuickOpen).toSelf().inSingletonScope();
55
+ bind(TaskRestartRunningQuickOpen).toSelf().inSingletonScope();
56
+ bind(TaskConfigurations).toSelf().inSingletonScope();
57
+ bind(ProvidedTaskConfigurations).toSelf().inSingletonScope();
58
+ bind(TaskConfigurationManager).toSelf().inSingletonScope();
59
+ bind(TaskServer).toDynamicValue(ctx => {
60
+ const connection = ctx.container.get(WebSocketConnectionProvider);
61
+ const taskWatcher = ctx.container.get(TaskWatcher);
62
+ return connection.createProxy(taskPath, taskWatcher.getTaskClient());
65
63
  }).inSingletonScope();
66
- bind(task_definition_registry_1.TaskDefinitionRegistry).toSelf().inSingletonScope();
67
- bind(task_problem_matcher_registry_1.ProblemMatcherRegistry).toSelf().inSingletonScope();
68
- bind(task_problem_pattern_registry_1.ProblemPatternRegistry).toSelf().inSingletonScope();
69
- (0, task_common_module_1.createCommonBindings)(bind);
70
- bind(task_contribution_1.TaskProviderRegistry).toSelf().inSingletonScope();
71
- bind(task_contribution_1.TaskResolverRegistry).toSelf().inSingletonScope();
72
- (0, common_1.bindRootContributionProvider)(bind, task_contribution_1.TaskContribution);
73
- bind(task_schema_updater_1.TaskSchemaUpdater).toSelf().inSingletonScope();
74
- bind(json_schema_store_1.JsonSchemaContribution).toService(task_schema_updater_1.TaskSchemaUpdater);
75
- bind(task_name_resolver_1.TaskNameResolver).toSelf().inSingletonScope();
76
- bind(task_source_resolver_1.TaskSourceResolver).toSelf().inSingletonScope();
77
- bind(task_templates_1.TaskTemplateSelector).toSelf().inSingletonScope();
78
- bind(task_terminal_widget_manager_1.TaskTerminalWidgetManager).toSelf().inSingletonScope();
79
- bind(task_context_key_service_1.TaskContextKeyService).toSelf().inSingletonScope();
80
- (0, process_task_frontend_module_1.bindProcessTaskModule)(bind);
81
- (0, task_preferences_1.bindTaskPreferences)(bind);
82
- bind(workspace_trust_service_1.WorkspaceRestrictionContribution).toConstantValue({
64
+ bind(TaskDefinitionRegistry).toSelf().inSingletonScope();
65
+ bind(ProblemMatcherRegistry).toSelf().inSingletonScope();
66
+ bind(ProblemPatternRegistry).toSelf().inSingletonScope();
67
+ createCommonBindings(bind);
68
+ bind(TaskProviderRegistry).toSelf().inSingletonScope();
69
+ bind(TaskResolverRegistry).toSelf().inSingletonScope();
70
+ bindRootContributionProvider(bind, TaskContribution);
71
+ bind(TaskSchemaUpdater).toSelf().inSingletonScope();
72
+ bind(JsonSchemaContribution).toService(TaskSchemaUpdater);
73
+ bind(TaskNameResolver).toSelf().inSingletonScope();
74
+ bind(TaskSourceResolver).toSelf().inSingletonScope();
75
+ bind(TaskTemplateSelector).toSelf().inSingletonScope();
76
+ bind(TaskTerminalWidgetManager).toSelf().inSingletonScope();
77
+ bind(TaskContextKeyService).toSelf().inSingletonScope();
78
+ bindProcessTaskModule(bind);
79
+ bindTaskPreferences(bind);
80
+ bind(WorkspaceRestrictionContribution).toConstantValue({
83
81
  getRestrictions() {
84
82
  return [{
85
- label: common_1.nls.localize('theia/task/taskRestricted', 'Task execution is disabled in Restricted Mode')
83
+ label: nls.localize('theia/task/taskRestricted', 'Task execution is disabled in Restricted Mode')
86
84
  }];
87
85
  }
88
86
  });
@@ -1 +1 @@
1
- {"version":3,"file":"task-frontend-module.js","sourceRoot":"","sources":["../../src/browser/task-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,qDAAkG;AAClG,mDAAkH;AAClH,iEAAgF;AAChF,uDAA6H;AAC7H,2DAAmG;AACnG,iDAA6C;AAC7C,+DAA2D;AAC3D,iFAA4E;AAC5E,6EAAwE;AACxE,qEAAoE;AACpE,2DAA+D;AAC/D,yDAAqD;AACrD,yFAA+E;AAC/E,+DAA0D;AAC1D,yEAAoE;AACpE,mFAAyE;AACzE,mFAAyE;AACzE,6EAAwE;AACxE,iEAAiE;AACjE,6CAA2C;AAC3C,uCAAqC;AACrC,6DAAwD;AACxD,iEAA4D;AAC5D,qDAAwD;AACxD,iFAA2E;AAC3E,iFAAmF;AACnF,mFAA2F;AAC3F,yEAAmE;AACnE,kGAA8H;AAE9H,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,qDAAwB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAA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vD,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,4BAA4B,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IACrD,IAAI,CAAC,iBAAiB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACpD,IAAI,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC1D,IAAI,CAAC,gBAAgB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACnD,IAAI,CAAC,kBAAkB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACrD,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,yBAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,qBAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAExD,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC5B,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAE1B,IAAI,CAAC,gCAAgC,CAAC,CAAC,eAAe,CAAC;QACnD,eAAe;YACX,OAAO,CAAC;oBACJ,KAAK,EAAE,GAAG,CAAC,QAAQ,CAAC,2BAA2B,EAAE,+CAA+C,CAAC;iBACpG,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { TaskConfiguration } from '../common';
2
- import { TaskDefinitionRegistry } from './task-definition-registry';
3
- import { TaskConfigurations } from './task-configurations';
1
+ import { TaskConfiguration } from '../common/index.js';
2
+ import { TaskDefinitionRegistry } from './task-definition-registry.js';
3
+ import { TaskConfigurations } from './task-configurations.js';
4
4
  export declare class TaskNameResolver {
5
5
  protected taskDefinitionRegistry: TaskDefinitionRegistry;
6
6
  protected readonly taskConfigurations: TaskConfigurations;
@@ -1 +1 @@
1
- {"version":3,"file":"task-name-resolver.d.ts","sourceRoot":"","sources":["../../src/browser/task-name-resolver.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBACa,gBAAgB;IAEzB,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAGzD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAE1D;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM;IAkBxC,OAAO,CAAC,cAAc;CAGzB"}
1
+ {"version":3,"file":"task-name-resolver.d.ts","sourceRoot":"","sources":["../../src/browser/task-name-resolver.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,qBACa,gBAAgB;IAEzB,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAGzD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAE1D;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM;IAkBxC,OAAO,CAAC,cAAc;CAGzB"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2019 Red Hat, Inc. and others.
4
3
  //
@@ -14,12 +13,10 @@
14
13
  //
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.TaskNameResolver = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const task_definition_registry_1 = require("./task-definition-registry");
22
- const task_configurations_1 = require("./task-configurations");
16
+ import { __decorate } from "tslib";
17
+ import { inject, injectable } from '@theia/core/shared/inversify';
18
+ import { TaskDefinitionRegistry } from './task-definition-registry.js';
19
+ import { TaskConfigurations } from './task-configurations.js';
23
20
  let TaskNameResolver = class TaskNameResolver {
24
21
  /**
25
22
  * Returns task name to display.
@@ -45,16 +42,14 @@ let TaskNameResolver = class TaskNameResolver {
45
42
  return !!this.taskDefinitionRegistry.getDefinition(task);
46
43
  }
47
44
  };
48
- exports.TaskNameResolver = TaskNameResolver;
49
- tslib_1.__decorate([
50
- (0, inversify_1.inject)(task_definition_registry_1.TaskDefinitionRegistry),
51
- tslib_1.__metadata("design:type", task_definition_registry_1.TaskDefinitionRegistry)
45
+ __decorate([
46
+ inject(TaskDefinitionRegistry)
52
47
  ], TaskNameResolver.prototype, "taskDefinitionRegistry", void 0);
53
- tslib_1.__decorate([
54
- (0, inversify_1.inject)(task_configurations_1.TaskConfigurations),
55
- tslib_1.__metadata("design:type", task_configurations_1.TaskConfigurations)
48
+ __decorate([
49
+ inject(TaskConfigurations)
56
50
  ], TaskNameResolver.prototype, "taskConfigurations", void 0);
57
- exports.TaskNameResolver = TaskNameResolver = tslib_1.__decorate([
58
- (0, inversify_1.injectable)()
51
+ TaskNameResolver = __decorate([
52
+ injectable()
59
53
  ], TaskNameResolver);
54
+ export { TaskNameResolver };
60
55
  //# sourceMappingURL=task-name-resolver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"task-name-resolver.js","sourceRoot":"","sources":["../../src/browser/task-name-resolver.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E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AAgE;QAChE,OAAO,IAAI,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;IACtD,CAAC;IAEO,cAAc,CAAC,IAAuB;QAC1C,OAAO,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;CACJ,CAAA;AA9Ba;IADT,MAAM,CAAC,sBAAsB,CAAC;gEAC0B;AAGtC;IADlB,MAAM,CAAC,kBAAkB,CAAC;4DAC+B;AALjD,gBAAgB;IAD5B,UAAU,EAAE;GACA,gBAAgB,CAgC5B"}
@@ -1,4 +1,4 @@
1
- import { TaskConfiguration } from '../common';
1
+ import { TaskConfiguration } from '../common/index.js';
2
2
  export declare class TaskNode {
3
3
  taskId: TaskConfiguration;
4
4
  childTasks: TaskNode[];
@@ -1 +1 @@
1
- {"version":3,"file":"task-node.d.ts","sourceRoot":"","sources":["../../src/browser/task-node.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,qBAAa,QAAQ;IAEjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,EAAE,iBAAiB,EAAE,CAAC;gBAEnB,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE;IAM7F,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAIxC,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;CAGzD"}
1
+ {"version":3,"file":"task-node.d.ts","sourceRoot":"","sources":["../../src/browser/task-node.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,qBAAa,QAAQ;IAEjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,EAAE,iBAAiB,EAAE,CAAC;gBAEnB,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE;IAM7F,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAIxC,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;CAGzD"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskNode = void 0;
4
- class TaskNode {
1
+ export class TaskNode {
5
2
  constructor(taskId, childTasks, parentsID) {
6
3
  this.taskId = taskId;
7
4
  this.childTasks = childTasks;
@@ -14,5 +11,4 @@ class TaskNode {
14
11
  this.parentsID.push(parentId);
15
12
  }
16
13
  }
17
- exports.TaskNode = TaskNode;
18
14
  //# sourceMappingURL=task-node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"task-node.js","sourceRoot":"","sources":["../../src/browser/task-node.ts"],"names":[],"mappings":";;;AAiBA,MAAa,QAAQ;IAMjB,YAAY,MAAyB,EAAE,UAAsB,EAAE,SAA8B;QACzF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED,kBAAkB,CAAC,IAAc;QAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,mBAAmB,CAAC,QAA2B;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;CACJ;AAnBD,4BAmBC"}
1
+ {"version":3,"file":"task-node.js","sourceRoot":"","sources":["../../src/browser/task-node.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,QAAQ;IAMjB,YAAY,MAAyB,EAAE,UAAsB,EAAE,SAA8B;QACzF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED,kBAAkB,CAAC,IAAc;QAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,mBAAmB,CAAC,QAA2B;QAC3C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;CACJ"}
@@ -1,7 +1,7 @@
1
1
  import { Event, Emitter } from '@theia/core/lib/common';
2
2
  import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
3
- import { NamedProblemMatcher, ProblemMatcher, ProblemMatcherContribution } from '../common';
4
- import { ProblemPatternRegistry } from './task-problem-pattern-registry';
3
+ import { NamedProblemMatcher, ProblemMatcher, ProblemMatcherContribution } from '../common/index.js';
4
+ import { ProblemPatternRegistry } from './task-problem-pattern-registry.js';
5
5
  import { ILogger } from '@theia/core';
6
6
  export declare class ProblemMatcherRegistry {
7
7
  private readonly matchers;
@@ -1 +1 @@
1
- {"version":3,"file":"task-problem-matcher-registry.d.ts","sourceRoot":"","sources":["../../src/browser/task-problem-matcher-registry.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAO,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAC4B,mBAAmB,EAClC,cAAc,EAAE,0BAA0B,EAE7D,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAGzE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,qBACa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0C;IACnE,OAAO,CAAC,YAAY,CAAwB;IAG5C,SAA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AA0C;IACnE,OAAO,CAAC,YAAY,CAAwB;IAG5C,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAGlE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,SAAS,CAAC,QAAQ,CAAC,gCAAgC,gBAAuB;IAC1E,IAAI,yBAAyB,IAAI,KAAK,CAAC,IAAI,CAAC,CAE3C;IAGD,SAAS,CAAC,IAAI,IAAI,IAAI;IAQtB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,0BAA0B,GAAG,UAAU;cAazC,UAAU,CAAC,OAAO,EAAE,0BAA0B,EAAE,SAAS,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/G;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS;IAIlD;;OAEG;IACH,MAAM,IAAI,mBAAmB,EAAE;IAS/B;;;;OAIG;IACG,iCAAiC,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,cAAc,CAAC;IA4ErG,OAAO,CAAC,GAAG;IAKX,OAAO,CAAC,4BAA4B;IA4BpC,OAAO,CAAC,YAAY;CAqFvB"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2019 Ericsson and others.
4
3
  //
@@ -14,26 +13,24 @@
14
13
  //
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ProblemMatcherRegistry = void 0;
19
- const tslib_1 = require("tslib");
16
+ import { __decorate } from "tslib";
20
17
  /*---------------------------------------------------------------------------------------------
21
18
  * Copyright (c) Microsoft Corporation. All rights reserved.
22
19
  * Licensed under the MIT License. See License.txt in the project root for license information.
23
20
  *--------------------------------------------------------------------------------------------*/
24
- const inversify_1 = require("@theia/core/shared/inversify");
25
- const common_1 = require("@theia/core/lib/common");
26
- const disposable_1 = require("@theia/core/lib/common/disposable");
27
- const common_2 = require("../common");
28
- const task_problem_pattern_registry_1 = require("./task-problem-pattern-registry");
29
- const severity_1 = require("@theia/core/lib/common/severity");
30
- const promise_util_1 = require("@theia/core/lib/common/promise-util");
31
- const core_1 = require("@theia/core");
21
+ import { inject, injectable, postConstruct, named } from '@theia/core/shared/inversify';
22
+ import { Emitter, nls } from '@theia/core/lib/common';
23
+ import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
24
+ import { ApplyToKind, FileLocationKind, ProblemPattern, WatchingMatcher, fromVariableName } from '../common/index.js';
25
+ import { ProblemPatternRegistry } from './task-problem-pattern-registry.js';
26
+ import { Severity } from '@theia/core/lib/common/severity';
27
+ import { Deferred } from '@theia/core/lib/common/promise-util';
28
+ import { ILogger } from '@theia/core';
32
29
  let ProblemMatcherRegistry = class ProblemMatcherRegistry {
33
30
  constructor() {
34
31
  this.matchers = new Map();
35
- this.readyPromise = new promise_util_1.Deferred();
36
- this.onDidChangeProblemMatcherEmitter = new common_1.Emitter();
32
+ this.readyPromise = new Deferred();
33
+ this.onDidChangeProblemMatcherEmitter = new Emitter();
37
34
  }
38
35
  get onDidChangeProblemMatcher() {
39
36
  return this.onDidChangeProblemMatcherEmitter.event;
@@ -56,9 +53,9 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
56
53
  register(matcher) {
57
54
  if (!matcher.name) {
58
55
  this.logger.error('Only named Problem Matchers can be registered.');
59
- return disposable_1.Disposable.NULL;
56
+ return Disposable.NULL;
60
57
  }
61
- const toDispose = new disposable_1.DisposableCollection(disposable_1.Disposable.create(() => {
58
+ const toDispose = new DisposableCollection(Disposable.create(() => {
62
59
  /* mark as not disposed */
63
60
  this.onDidChangeProblemMatcherEmitter.fire(undefined);
64
61
  }));
@@ -79,7 +76,7 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
79
76
  * @return the problem matcher. If the task definition is not found, `undefined` is returned.
80
77
  */
81
78
  get(name) {
82
- return this.matchers.get((0, common_2.fromVariableName)(name));
79
+ return this.matchers.get(fromVariableName(name));
83
80
  }
84
81
  /**
85
82
  * Returns all registered problem matchers in the registry.
@@ -105,7 +102,7 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
105
102
  let fileLocation;
106
103
  let filePrefix;
107
104
  if (matcher.fileLocation === undefined) {
108
- fileLocation = baseMatcher ? baseMatcher.fileLocation : common_2.FileLocationKind.Relative;
105
+ fileLocation = baseMatcher ? baseMatcher.fileLocation : FileLocationKind.Relative;
109
106
  filePrefix = baseMatcher ? baseMatcher.filePrefix : '${workspaceFolder}';
110
107
  }
111
108
  else {
@@ -117,7 +114,7 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
117
114
  if (matcher.pattern) {
118
115
  if (typeof matcher.pattern === 'string') {
119
116
  await this.problemPatternRegistry.onReady();
120
- const registeredPattern = this.problemPatternRegistry.get((0, common_2.fromVariableName)(matcher.pattern));
117
+ const registeredPattern = this.problemPatternRegistry.get(fromVariableName(matcher.pattern));
121
118
  if (Array.isArray(registeredPattern)) {
122
119
  patterns.push(...registeredPattern);
123
120
  }
@@ -126,10 +123,10 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
126
123
  }
127
124
  }
128
125
  else if (Array.isArray(matcher.pattern)) {
129
- patterns.push(...matcher.pattern.map(p => common_2.ProblemPattern.fromProblemPatternContribution(p)));
126
+ patterns.push(...matcher.pattern.map(p => ProblemPattern.fromProblemPatternContribution(p)));
130
127
  }
131
128
  else {
132
- patterns.push(common_2.ProblemPattern.fromProblemPatternContribution(matcher.pattern));
129
+ patterns.push(ProblemPattern.fromProblemPatternContribution(matcher.pattern));
133
130
  }
134
131
  }
135
132
  else if (baseMatcher) {
@@ -146,16 +143,16 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
146
143
  }
147
144
  let applyTo;
148
145
  if (matcher.applyTo === undefined) {
149
- applyTo = baseMatcher ? baseMatcher.applyTo : common_2.ApplyToKind.allDocuments;
146
+ applyTo = baseMatcher ? baseMatcher.applyTo : ApplyToKind.allDocuments;
150
147
  }
151
148
  else {
152
- applyTo = common_2.ApplyToKind.fromString(matcher.applyTo) || common_2.ApplyToKind.allDocuments;
149
+ applyTo = ApplyToKind.fromString(matcher.applyTo) || ApplyToKind.allDocuments;
153
150
  }
154
- let severity = severity_1.Severity.fromValue(matcher.severity);
151
+ let severity = Severity.fromValue(matcher.severity);
155
152
  if (matcher.severity === undefined && baseMatcher && baseMatcher.severity !== undefined) {
156
153
  severity = baseMatcher.severity;
157
154
  }
158
- let watching = common_2.WatchingMatcher.fromWatchingMatcherContribution(matcher.background || matcher.watching);
155
+ let watching = WatchingMatcher.fromWatchingMatcherContribution(matcher.background || matcher.watching);
159
156
  if (watching === undefined && baseMatcher) {
160
157
  watching = baseMatcher.watching;
161
158
  }
@@ -176,29 +173,29 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
176
173
  }
177
174
  add(matcher) {
178
175
  this.matchers.set(matcher.name, matcher);
179
- return disposable_1.Disposable.create(() => this.matchers.delete(matcher.name));
176
+ return Disposable.create(() => this.matchers.delete(matcher.name));
180
177
  }
181
178
  getFileLocationKindAndPrefix(matcher) {
182
- let fileLocation = common_2.FileLocationKind.Relative;
179
+ let fileLocation = FileLocationKind.Relative;
183
180
  let filePrefix = '${workspaceFolder}';
184
181
  if (matcher.fileLocation !== undefined) {
185
182
  if (Array.isArray(matcher.fileLocation)) {
186
183
  if (matcher.fileLocation.length > 0) {
187
- const locationKind = common_2.FileLocationKind.fromString(matcher.fileLocation[0]);
188
- if (matcher.fileLocation.length === 1 && locationKind === common_2.FileLocationKind.Absolute) {
184
+ const locationKind = FileLocationKind.fromString(matcher.fileLocation[0]);
185
+ if (matcher.fileLocation.length === 1 && locationKind === FileLocationKind.Absolute) {
189
186
  fileLocation = locationKind;
190
187
  }
191
- else if (matcher.fileLocation.length === 2 && locationKind === common_2.FileLocationKind.Relative && matcher.fileLocation[1]) {
188
+ else if (matcher.fileLocation.length === 2 && locationKind === FileLocationKind.Relative && matcher.fileLocation[1]) {
192
189
  fileLocation = locationKind;
193
190
  filePrefix = matcher.fileLocation[1];
194
191
  }
195
192
  }
196
193
  }
197
194
  else {
198
- const locationKind = common_2.FileLocationKind.fromString(matcher.fileLocation);
195
+ const locationKind = FileLocationKind.fromString(matcher.fileLocation);
199
196
  if (locationKind) {
200
197
  fileLocation = locationKind;
201
- if (locationKind === common_2.FileLocationKind.Relative) {
198
+ if (locationKind === FileLocationKind.Relative) {
202
199
  filePrefix = '${workspaceFolder}';
203
200
  }
204
201
  }
@@ -210,99 +207,94 @@ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
210
207
  fillDefaults() {
211
208
  this.add({
212
209
  name: 'msCompile',
213
- label: common_1.nls.localizeByDefault('Microsoft compiler problems'),
210
+ label: nls.localizeByDefault('Microsoft compiler problems'),
214
211
  owner: 'msCompile',
215
- applyTo: common_2.ApplyToKind.allDocuments,
216
- fileLocation: common_2.FileLocationKind.Absolute,
212
+ applyTo: ApplyToKind.allDocuments,
213
+ fileLocation: FileLocationKind.Absolute,
217
214
  pattern: (this.problemPatternRegistry.get('msCompile'))
218
215
  });
219
216
  this.add({
220
217
  name: 'lessCompile',
221
- label: common_1.nls.localizeByDefault('Less problems'),
218
+ label: nls.localizeByDefault('Less problems'),
222
219
  deprecated: true,
223
220
  owner: 'lessCompile',
224
221
  source: 'less',
225
- applyTo: common_2.ApplyToKind.allDocuments,
226
- fileLocation: common_2.FileLocationKind.Absolute,
222
+ applyTo: ApplyToKind.allDocuments,
223
+ fileLocation: FileLocationKind.Absolute,
227
224
  pattern: (this.problemPatternRegistry.get('lessCompile')),
228
- severity: severity_1.Severity.Error
225
+ severity: Severity.Error
229
226
  });
230
227
  this.add({
231
228
  name: 'gulp-tsc',
232
- label: common_1.nls.localizeByDefault('Gulp TSC Problems'),
229
+ label: nls.localizeByDefault('Gulp TSC Problems'),
233
230
  owner: 'typescript',
234
231
  source: 'ts',
235
- applyTo: common_2.ApplyToKind.closedDocuments,
236
- fileLocation: common_2.FileLocationKind.Relative,
232
+ applyTo: ApplyToKind.closedDocuments,
233
+ fileLocation: FileLocationKind.Relative,
237
234
  filePrefix: '${workspaceFolder}',
238
235
  pattern: (this.problemPatternRegistry.get('gulp-tsc'))
239
236
  });
240
237
  this.add({
241
238
  name: 'jshint',
242
- label: common_1.nls.localizeByDefault('JSHint problems'),
239
+ label: nls.localizeByDefault('JSHint problems'),
243
240
  owner: 'jshint',
244
241
  source: 'jshint',
245
- applyTo: common_2.ApplyToKind.allDocuments,
246
- fileLocation: common_2.FileLocationKind.Absolute,
242
+ applyTo: ApplyToKind.allDocuments,
243
+ fileLocation: FileLocationKind.Absolute,
247
244
  pattern: (this.problemPatternRegistry.get('jshint'))
248
245
  });
249
246
  this.add({
250
247
  name: 'jshint-stylish',
251
- label: common_1.nls.localizeByDefault('JSHint stylish problems'),
248
+ label: nls.localizeByDefault('JSHint stylish problems'),
252
249
  owner: 'jshint',
253
250
  source: 'jshint',
254
- applyTo: common_2.ApplyToKind.allDocuments,
255
- fileLocation: common_2.FileLocationKind.Absolute,
251
+ applyTo: ApplyToKind.allDocuments,
252
+ fileLocation: FileLocationKind.Absolute,
256
253
  pattern: (this.problemPatternRegistry.get('jshint-stylish'))
257
254
  });
258
255
  this.add({
259
256
  name: 'eslint-compact',
260
- label: common_1.nls.localizeByDefault('ESLint compact problems'),
257
+ label: nls.localizeByDefault('ESLint compact problems'),
261
258
  owner: 'eslint',
262
259
  source: 'eslint',
263
- applyTo: common_2.ApplyToKind.allDocuments,
264
- fileLocation: common_2.FileLocationKind.Absolute,
260
+ applyTo: ApplyToKind.allDocuments,
261
+ fileLocation: FileLocationKind.Absolute,
265
262
  filePrefix: '${workspaceFolder}',
266
263
  pattern: (this.problemPatternRegistry.get('eslint-compact'))
267
264
  });
268
265
  this.add({
269
266
  name: 'eslint-stylish',
270
- label: common_1.nls.localizeByDefault('ESLint stylish problems'),
267
+ label: nls.localizeByDefault('ESLint stylish problems'),
271
268
  owner: 'eslint',
272
269
  source: 'eslint',
273
- applyTo: common_2.ApplyToKind.allDocuments,
274
- fileLocation: common_2.FileLocationKind.Absolute,
270
+ applyTo: ApplyToKind.allDocuments,
271
+ fileLocation: FileLocationKind.Absolute,
275
272
  pattern: (this.problemPatternRegistry.get('eslint-stylish'))
276
273
  });
277
274
  this.add({
278
275
  name: 'go',
279
- label: common_1.nls.localizeByDefault('Go problems'),
276
+ label: nls.localizeByDefault('Go problems'),
280
277
  owner: 'go',
281
278
  source: 'go',
282
- applyTo: common_2.ApplyToKind.allDocuments,
283
- fileLocation: common_2.FileLocationKind.Relative,
279
+ applyTo: ApplyToKind.allDocuments,
280
+ fileLocation: FileLocationKind.Relative,
284
281
  filePrefix: '${workspaceFolder}',
285
282
  pattern: (this.problemPatternRegistry.get('go'))
286
283
  });
287
284
  }
288
285
  };
289
- exports.ProblemMatcherRegistry = ProblemMatcherRegistry;
290
- tslib_1.__decorate([
291
- (0, inversify_1.inject)(task_problem_pattern_registry_1.ProblemPatternRegistry),
292
- tslib_1.__metadata("design:type", task_problem_pattern_registry_1.ProblemPatternRegistry)
286
+ __decorate([
287
+ inject(ProblemPatternRegistry)
293
288
  ], ProblemMatcherRegistry.prototype, "problemPatternRegistry", void 0);
294
- tslib_1.__decorate([
295
- (0, inversify_1.inject)(core_1.ILogger),
296
- (0, inversify_1.named)('task:ProblemMatcherRegistry'),
297
- tslib_1.__metadata("design:type", Object)
289
+ __decorate([
290
+ inject(ILogger),
291
+ named('task:ProblemMatcherRegistry')
298
292
  ], ProblemMatcherRegistry.prototype, "logger", void 0);
299
- tslib_1.__decorate([
300
- (0, inversify_1.postConstruct)(),
301
- tslib_1.__metadata("design:type", Function),
302
- tslib_1.__metadata("design:paramtypes", []),
303
- tslib_1.__metadata("design:returntype", void 0)
293
+ __decorate([
294
+ postConstruct()
304
295
  ], ProblemMatcherRegistry.prototype, "init", null);
305
- exports.ProblemMatcherRegistry = ProblemMatcherRegistry = tslib_1.__decorate([
306
- (0, inversify_1.injectable)()
296
+ ProblemMatcherRegistry = __decorate([
297
+ injectable()
307
298
  ], ProblemMatcherRegistry);
299
+ export { ProblemMatcherRegistry };
308
300
  //# sourceMappingURL=task-problem-matcher-registry.js.map