@theia/task 1.67.0-next.56 → 1.67.0-next.59

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 (229) hide show
  1. package/lib/browser/index.d.ts +7 -0
  2. package/lib/browser/index.d.ts.map +1 -0
  3. package/lib/browser/index.js +25 -0
  4. package/lib/browser/index.js.map +1 -0
  5. package/lib/browser/process/process-task-contribution.d.ts +7 -0
  6. package/lib/browser/process/process-task-contribution.d.ts.map +1 -0
  7. package/lib/browser/process/process-task-contribution.js +36 -0
  8. package/lib/browser/process/process-task-contribution.js.map +1 -0
  9. package/lib/browser/process/process-task-frontend-module.d.ts +3 -0
  10. package/lib/browser/process/process-task-frontend-module.d.ts.map +1 -0
  11. package/lib/browser/process/process-task-frontend-module.js +28 -0
  12. package/lib/browser/process/process-task-frontend-module.js.map +1 -0
  13. package/lib/browser/process/process-task-resolver.d.ts +18 -0
  14. package/lib/browser/process/process-task-resolver.d.ts.map +1 -0
  15. package/lib/browser/process/process-task-resolver.js +94 -0
  16. package/lib/browser/process/process-task-resolver.js.map +1 -0
  17. package/lib/browser/provided-task-configurations.d.ts +44 -0
  18. package/lib/browser/provided-task-configurations.d.ts.map +1 -0
  19. package/lib/browser/provided-task-configurations.js +206 -0
  20. package/lib/browser/provided-task-configurations.js.map +1 -0
  21. package/lib/browser/provided-task-configurations.spec.d.ts +2 -0
  22. package/lib/browser/provided-task-configurations.spec.d.ts.map +1 -0
  23. package/lib/browser/provided-task-configurations.spec.js +44 -0
  24. package/lib/browser/provided-task-configurations.spec.js.map +1 -0
  25. package/lib/browser/quick-open-task.d.ts +146 -0
  26. package/lib/browser/quick-open-task.d.ts.map +1 -0
  27. package/lib/browser/quick-open-task.js +757 -0
  28. package/lib/browser/quick-open-task.js.map +1 -0
  29. package/lib/browser/task-configuration-manager.d.ts +63 -0
  30. package/lib/browser/task-configuration-manager.d.ts.map +1 -0
  31. package/lib/browser/task-configuration-manager.js +243 -0
  32. package/lib/browser/task-configuration-manager.js.map +1 -0
  33. package/lib/browser/task-configuration-model.d.ts +34 -0
  34. package/lib/browser/task-configuration-model.d.ts.map +1 -0
  35. package/lib/browser/task-configuration-model.js +83 -0
  36. package/lib/browser/task-configuration-model.js.map +1 -0
  37. package/lib/browser/task-configurations.d.ts +128 -0
  38. package/lib/browser/task-configurations.d.ts.map +1 -0
  39. package/lib/browser/task-configurations.js +479 -0
  40. package/lib/browser/task-configurations.js.map +1 -0
  41. package/lib/browser/task-context-key-service.d.ts +18 -0
  42. package/lib/browser/task-context-key-service.d.ts.map +1 -0
  43. package/lib/browser/task-context-key-service.js +72 -0
  44. package/lib/browser/task-context-key-service.js.map +1 -0
  45. package/lib/browser/task-contribution.d.ts +183 -0
  46. package/lib/browser/task-contribution.d.ts.map +1 -0
  47. package/lib/browser/task-contribution.js +199 -0
  48. package/lib/browser/task-contribution.js.map +1 -0
  49. package/lib/browser/task-definition-registry.d.ts +39 -0
  50. package/lib/browser/task-definition-registry.d.ts.map +1 -0
  51. package/lib/browser/task-definition-registry.js +130 -0
  52. package/lib/browser/task-definition-registry.js.map +1 -0
  53. package/lib/browser/task-definition-registry.spec.d.ts +2 -0
  54. package/lib/browser/task-definition-registry.spec.d.ts.map +1 -0
  55. package/lib/browser/task-definition-registry.spec.js +171 -0
  56. package/lib/browser/task-definition-registry.spec.js.map +1 -0
  57. package/lib/browser/task-frontend-contribution.d.ts +57 -0
  58. package/lib/browser/task-frontend-contribution.d.ts.map +1 -0
  59. package/lib/browser/task-frontend-contribution.js +351 -0
  60. package/lib/browser/task-frontend-contribution.js.map +1 -0
  61. package/lib/browser/task-frontend-module.d.ts +6 -0
  62. package/lib/browser/task-frontend-module.d.ts.map +1 -0
  63. package/lib/browser/task-frontend-module.js +82 -0
  64. package/lib/browser/task-frontend-module.js.map +1 -0
  65. package/lib/browser/task-name-resolver.d.ts +14 -0
  66. package/lib/browser/task-name-resolver.d.ts.map +1 -0
  67. package/lib/browser/task-name-resolver.js +60 -0
  68. package/lib/browser/task-name-resolver.js.map +1 -0
  69. package/lib/browser/task-node.d.ts +10 -0
  70. package/lib/browser/task-node.d.ts.map +1 -0
  71. package/lib/browser/task-node.js +18 -0
  72. package/lib/browser/task-node.js.map +1 -0
  73. package/lib/browser/task-problem-matcher-registry.d.ts +41 -0
  74. package/lib/browser/task-problem-matcher-registry.d.ts.map +1 -0
  75. package/lib/browser/task-problem-matcher-registry.js +302 -0
  76. package/lib/browser/task-problem-matcher-registry.js.map +1 -0
  77. package/lib/browser/task-problem-pattern-registry.d.ts +24 -0
  78. package/lib/browser/task-problem-pattern-registry.d.ts.map +1 -0
  79. package/lib/browser/task-problem-pattern-registry.js +203 -0
  80. package/lib/browser/task-problem-pattern-registry.js.map +1 -0
  81. package/lib/browser/task-schema-updater.d.ts +58 -0
  82. package/lib/browser/task-schema-updater.d.ts.map +1 -0
  83. package/lib/browser/task-schema-updater.js +676 -0
  84. package/lib/browser/task-schema-updater.js.map +1 -0
  85. package/lib/browser/task-service.d.ts +282 -0
  86. package/lib/browser/task-service.d.ts.map +1 -0
  87. package/lib/browser/task-service.js +1116 -0
  88. package/lib/browser/task-service.js.map +1 -0
  89. package/lib/browser/task-source-resolver.d.ts +10 -0
  90. package/lib/browser/task-source-resolver.d.ts.map +1 -0
  91. package/lib/browser/task-source-resolver.js +44 -0
  92. package/lib/browser/task-source-resolver.js.map +1 -0
  93. package/lib/browser/task-templates.d.ts +14 -0
  94. package/lib/browser/task-templates.d.ts.map +1 -0
  95. package/lib/browser/task-templates.js +158 -0
  96. package/lib/browser/task-templates.js.map +1 -0
  97. package/lib/browser/task-terminal-widget-manager.d.ts +45 -0
  98. package/lib/browser/task-terminal-widget-manager.d.ts.map +1 -0
  99. package/lib/browser/task-terminal-widget-manager.js +222 -0
  100. package/lib/browser/task-terminal-widget-manager.js.map +1 -0
  101. package/lib/browser/tasks-monaco-contribution.d.ts +2 -0
  102. package/lib/browser/tasks-monaco-contribution.d.ts.map +1 -0
  103. package/lib/browser/tasks-monaco-contribution.js +28 -0
  104. package/lib/browser/tasks-monaco-contribution.js.map +1 -0
  105. package/lib/common/index.d.ts +5 -0
  106. package/lib/common/index.d.ts.map +1 -0
  107. package/lib/common/index.js +23 -0
  108. package/lib/common/index.js.map +1 -0
  109. package/lib/common/problem-matcher-protocol.d.ts +125 -0
  110. package/lib/common/problem-matcher-protocol.d.ts.map +1 -0
  111. package/lib/common/problem-matcher-protocol.js +133 -0
  112. package/lib/common/problem-matcher-protocol.js.map +1 -0
  113. package/lib/common/process/task-protocol.d.ts +69 -0
  114. package/lib/common/process/task-protocol.d.ts.map +1 -0
  115. package/lib/common/process/task-protocol.js +34 -0
  116. package/lib/common/process/task-protocol.js.map +1 -0
  117. package/lib/common/task-common-module.d.ts +8 -0
  118. package/lib/common/task-common-module.d.ts.map +1 -0
  119. package/lib/common/task-common-module.js +29 -0
  120. package/lib/common/task-common-module.js.map +1 -0
  121. package/lib/common/task-preferences.d.ts +6 -0
  122. package/lib/common/task-preferences.d.ts.map +1 -0
  123. package/lib/common/task-preferences.js +41 -0
  124. package/lib/common/task-preferences.js.map +1 -0
  125. package/lib/common/task-protocol.d.ts +194 -0
  126. package/lib/common/task-protocol.d.ts.map +1 -0
  127. package/lib/common/task-protocol.js +138 -0
  128. package/lib/common/task-protocol.js.map +1 -0
  129. package/lib/common/task-util.d.ts +23 -0
  130. package/lib/common/task-util.d.ts.map +1 -0
  131. package/lib/common/task-util.js +47 -0
  132. package/lib/common/task-util.js.map +1 -0
  133. package/lib/common/task-watcher.d.ts +18 -0
  134. package/lib/common/task-watcher.d.ts.map +1 -0
  135. package/lib/common/task-watcher.js +82 -0
  136. package/lib/common/task-watcher.js.map +1 -0
  137. package/lib/node/custom/custom-task-runner-backend-module.d.ts +3 -0
  138. package/lib/node/custom/custom-task-runner-backend-module.d.ts.map +1 -0
  139. package/lib/node/custom/custom-task-runner-backend-module.js +37 -0
  140. package/lib/node/custom/custom-task-runner-backend-module.js.map +1 -0
  141. package/lib/node/custom/custom-task-runner-contribution.d.ts +7 -0
  142. package/lib/node/custom/custom-task-runner-contribution.d.ts.map +1 -0
  143. package/lib/node/custom/custom-task-runner-contribution.js +35 -0
  144. package/lib/node/custom/custom-task-runner-contribution.js.map +1 -0
  145. package/lib/node/custom/custom-task-runner.d.ts +16 -0
  146. package/lib/node/custom/custom-task-runner.d.ts.map +1 -0
  147. package/lib/node/custom/custom-task-runner.js +62 -0
  148. package/lib/node/custom/custom-task-runner.js.map +1 -0
  149. package/lib/node/custom/custom-task.d.ts +21 -0
  150. package/lib/node/custom/custom-task.d.ts.map +1 -0
  151. package/lib/node/custom/custom-task.js +68 -0
  152. package/lib/node/custom/custom-task.js.map +1 -0
  153. package/lib/node/index.d.ts +4 -0
  154. package/lib/node/index.d.ts.map +1 -0
  155. package/lib/node/index.js +22 -0
  156. package/lib/node/index.js.map +1 -0
  157. package/lib/node/process/process-task-runner-backend-module.d.ts +3 -0
  158. package/lib/node/process/process-task-runner-backend-module.d.ts.map +1 -0
  159. package/lib/node/process/process-task-runner-backend-module.js +37 -0
  160. package/lib/node/process/process-task-runner-backend-module.js.map +1 -0
  161. package/lib/node/process/process-task-runner-contribution.d.ts +7 -0
  162. package/lib/node/process/process-task-runner-contribution.d.ts.map +1 -0
  163. package/lib/node/process/process-task-runner-contribution.js +36 -0
  164. package/lib/node/process/process-task-runner-contribution.js.map +1 -0
  165. package/lib/node/process/process-task-runner.d.ts +61 -0
  166. package/lib/node/process/process-task-runner.d.ts.map +1 -0
  167. package/lib/node/process/process-task-runner.js +348 -0
  168. package/lib/node/process/process-task-runner.js.map +1 -0
  169. package/lib/node/process/process-task.d.ts +27 -0
  170. package/lib/node/process/process-task.d.ts.map +1 -0
  171. package/lib/node/process/process-task.js +125 -0
  172. package/lib/node/process/process-task.js.map +1 -0
  173. package/lib/node/process/process-task.spec.d.ts +2 -0
  174. package/lib/node/process/process-task.spec.d.ts.map +1 -0
  175. package/lib/node/process/process-task.spec.js +30 -0
  176. package/lib/node/process/process-task.spec.js.map +1 -0
  177. package/lib/node/task-abstract-line-matcher.d.ts +50 -0
  178. package/lib/node/task-abstract-line-matcher.d.ts.map +1 -0
  179. package/lib/node/task-abstract-line-matcher.js +274 -0
  180. package/lib/node/task-abstract-line-matcher.js.map +1 -0
  181. package/lib/node/task-backend-application-contribution.d.ts +9 -0
  182. package/lib/node/task-backend-application-contribution.d.ts.map +1 -0
  183. package/lib/node/task-backend-application-contribution.js +41 -0
  184. package/lib/node/task-backend-application-contribution.js.map +1 -0
  185. package/lib/node/task-backend-module.d.ts +4 -0
  186. package/lib/node/task-backend-module.d.ts.map +1 -0
  187. package/lib/node/task-backend-module.js +53 -0
  188. package/lib/node/task-backend-module.js.map +1 -0
  189. package/lib/node/task-line-matchers.d.ts +28 -0
  190. package/lib/node/task-line-matchers.d.ts.map +1 -0
  191. package/lib/node/task-line-matchers.js +122 -0
  192. package/lib/node/task-line-matchers.js.map +1 -0
  193. package/lib/node/task-manager.d.ts +56 -0
  194. package/lib/node/task-manager.d.ts.map +1 -0
  195. package/lib/node/task-manager.js +125 -0
  196. package/lib/node/task-manager.js.map +1 -0
  197. package/lib/node/task-problem-collector.d.ts +11 -0
  198. package/lib/node/task-problem-collector.d.ts.map +1 -0
  199. package/lib/node/task-problem-collector.js +58 -0
  200. package/lib/node/task-problem-collector.js.map +1 -0
  201. package/lib/node/task-problem-collector.spec.d.ts +2 -0
  202. package/lib/node/task-problem-collector.spec.d.ts.map +1 -0
  203. package/lib/node/task-problem-collector.spec.js +311 -0
  204. package/lib/node/task-problem-collector.spec.js.map +1 -0
  205. package/lib/node/task-runner-protocol.d.ts +17 -0
  206. package/lib/node/task-runner-protocol.d.ts.map +1 -0
  207. package/lib/node/task-runner-protocol.js +20 -0
  208. package/lib/node/task-runner-protocol.js.map +1 -0
  209. package/lib/node/task-runner.d.ts +51 -0
  210. package/lib/node/task-runner.d.ts.map +1 -0
  211. package/lib/node/task-runner.js +90 -0
  212. package/lib/node/task-runner.js.map +1 -0
  213. package/lib/node/task-server.d.ts +40 -0
  214. package/lib/node/task-server.d.ts.map +1 -0
  215. package/lib/node/task-server.js +232 -0
  216. package/lib/node/task-server.js.map +1 -0
  217. package/lib/node/task-server.slow-spec.d.ts +2 -0
  218. package/lib/node/task-server.slow-spec.d.ts.map +1 -0
  219. package/lib/node/task-server.slow-spec.js +395 -0
  220. package/lib/node/task-server.slow-spec.js.map +1 -0
  221. package/lib/node/task.d.ts +51 -0
  222. package/lib/node/task.d.ts.map +1 -0
  223. package/lib/node/task.js +73 -0
  224. package/lib/node/task.js.map +1 -0
  225. package/lib/node/test/task-test-container.d.ts +3 -0
  226. package/lib/node/test/task-test-container.d.ts.map +1 -0
  227. package/lib/node/test/task-test-container.js +59 -0
  228. package/lib/node/test/task-test-container.js.map +1 -0
  229. package/package.json +12 -12
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2017 Ericsson and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
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
+ exports.default = new inversify_1.ContainerModule(bind => {
48
+ bind(task_frontend_contribution_1.TaskFrontendContribution).toSelf().inSingletonScope();
49
+ bind(task_service_1.TaskService).toSelf().inSingletonScope();
50
+ for (const identifier of [browser_1.FrontendApplicationContribution, common_1.CommandContribution, browser_1.KeybindingContribution, common_1.MenuContribution, quick_access_1.QuickAccessContribution]) {
51
+ bind(identifier).toService(task_frontend_contribution_1.TaskFrontendContribution);
52
+ }
53
+ bind(quick_open_task_1.QuickOpenTask).toSelf().inSingletonScope();
54
+ bind(quick_open_task_1.TaskRunningQuickOpen).toSelf().inSingletonScope();
55
+ bind(quick_open_task_1.TaskTerminateQuickOpen).toSelf().inSingletonScope();
56
+ bind(quick_open_task_1.TaskRestartRunningQuickOpen).toSelf().inSingletonScope();
57
+ bind(task_configurations_1.TaskConfigurations).toSelf().inSingletonScope();
58
+ bind(provided_task_configurations_1.ProvidedTaskConfigurations).toSelf().inSingletonScope();
59
+ bind(task_configuration_manager_1.TaskConfigurationManager).toSelf().inSingletonScope();
60
+ bind(task_protocol_1.TaskServer).toDynamicValue(ctx => {
61
+ const connection = ctx.container.get(messaging_1.WebSocketConnectionProvider);
62
+ const taskWatcher = ctx.container.get(task_watcher_1.TaskWatcher);
63
+ return connection.createProxy(task_protocol_1.taskPath, taskWatcher.getTaskClient());
64
+ }).inSingletonScope();
65
+ bind(task_definition_registry_1.TaskDefinitionRegistry).toSelf().inSingletonScope();
66
+ bind(task_problem_matcher_registry_1.ProblemMatcherRegistry).toSelf().inSingletonScope();
67
+ bind(task_problem_pattern_registry_1.ProblemPatternRegistry).toSelf().inSingletonScope();
68
+ (0, task_common_module_1.createCommonBindings)(bind);
69
+ bind(task_contribution_1.TaskProviderRegistry).toSelf().inSingletonScope();
70
+ bind(task_contribution_1.TaskResolverRegistry).toSelf().inSingletonScope();
71
+ (0, common_1.bindContributionProvider)(bind, task_contribution_1.TaskContribution);
72
+ bind(task_schema_updater_1.TaskSchemaUpdater).toSelf().inSingletonScope();
73
+ bind(json_schema_store_1.JsonSchemaContribution).toService(task_schema_updater_1.TaskSchemaUpdater);
74
+ bind(task_name_resolver_1.TaskNameResolver).toSelf().inSingletonScope();
75
+ bind(task_source_resolver_1.TaskSourceResolver).toSelf().inSingletonScope();
76
+ bind(task_templates_1.TaskTemplateSelector).toSelf().inSingletonScope();
77
+ bind(task_terminal_widget_manager_1.TaskTerminalWidgetManager).toSelf().inSingletonScope();
78
+ bind(task_context_key_service_1.TaskContextKeyService).toSelf().inSingletonScope();
79
+ (0, process_task_frontend_module_1.bindProcessTaskModule)(bind);
80
+ (0, task_preferences_1.bindTaskPreferences)(bind);
81
+ });
82
+ //# sourceMappingURL=task-frontend-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-frontend-module.js","sourceRoot":"","sources":["../../src/browser/task-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C,CAAC;IACjD,IAAI,CAAC,uCAAiB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACpD,IAAI,CAAC,0CAAsB,CAAC,CAAC,SAAS,CAAC,uCAAiB,CAAC,CAAC;IAC1D,IAAI,CAAC,qCAAgB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACnD,IAAI,CAAC,yCAAkB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACrD,IAAI,CAAC,qCAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,wDAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,gDAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAExD,IAAA,oDAAqB,EAAC,IAAI,CAAC,CAAC;IAC5B,IAAA,sCAAmB,EAAC,IAAI,CAAC,CAAC;AAC9B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { TaskConfiguration } from '../common';
2
+ import { TaskDefinitionRegistry } from './task-definition-registry';
3
+ import { TaskConfigurations } from './task-configurations';
4
+ export declare class TaskNameResolver {
5
+ protected taskDefinitionRegistry: TaskDefinitionRegistry;
6
+ protected readonly taskConfigurations: TaskConfigurations;
7
+ /**
8
+ * Returns task name to display.
9
+ * It is aligned with VS Code.
10
+ */
11
+ resolve(task: TaskConfiguration): string;
12
+ private isDetectedTask;
13
+ }
14
+ //# sourceMappingURL=task-name-resolver.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2019 Red Hat, Inc. and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
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");
23
+ let TaskNameResolver = class TaskNameResolver {
24
+ /**
25
+ * Returns task name to display.
26
+ * It is aligned with VS Code.
27
+ */
28
+ resolve(task) {
29
+ if (this.isDetectedTask(task)) {
30
+ const scope = task._scope;
31
+ const rawConfigs = this.taskConfigurations.getRawTaskConfigurations(scope);
32
+ const jsonConfig = rawConfigs.find(rawConfig => this.taskDefinitionRegistry.compareTasks({
33
+ ...rawConfig, _scope: scope
34
+ }, task));
35
+ // detected task that has a `label` defined in `tasks.json`
36
+ if (jsonConfig && jsonConfig.label) {
37
+ return jsonConfig.label;
38
+ }
39
+ return `${task.source || task._source}: ${task.label}`;
40
+ }
41
+ // it is a hack, when task is customized but extension is absent
42
+ return task.label || `${task.type}: ${task.task}`;
43
+ }
44
+ isDetectedTask(task) {
45
+ return !!this.taskDefinitionRegistry.getDefinition(task);
46
+ }
47
+ };
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)
52
+ ], 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)
56
+ ], TaskNameResolver.prototype, "taskConfigurations", void 0);
57
+ exports.TaskNameResolver = TaskNameResolver = tslib_1.__decorate([
58
+ (0, inversify_1.injectable)()
59
+ ], TaskNameResolver);
60
+ //# sourceMappingURL=task-name-resolver.js.map
@@ -0,0 +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,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAElE,yEAAoE;AACpE,+DAA2D;AAGpD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAOzB;;;OAGG;IACH,OAAO,CAAC,IAAuB;QAC3B,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;YAC1B,MAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;YAC3E,MAAM,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC;gBACrF,GAAG,SAAS,EAAE,MAAM,EAAE,KAAK;aAC9B,EAAE,IAAI,CAAC,CAAC,CAAC;YACV,2DAA2D;YAC3D,IAAI,UAAU,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;gBACjC,OAAO,UAAU,CAAC,KAAK,CAAC;YAC5B,CAAC;YACD,OAAO,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;QAC3D,CAAC;QAED,gEAAgE;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;AAhCY,4CAAgB;AAEf;IADT,IAAA,kBAAM,EAAC,iDAAsB,CAAC;sCACG,iDAAsB;gEAAC;AAGtC;IADlB,IAAA,kBAAM,EAAC,wCAAkB,CAAC;sCACY,wCAAkB;4DAAC;2BALjD,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAgC5B"}
@@ -0,0 +1,10 @@
1
+ import { TaskConfiguration } from '../common';
2
+ export declare class TaskNode {
3
+ taskId: TaskConfiguration;
4
+ childTasks: TaskNode[];
5
+ parentsID: TaskConfiguration[];
6
+ constructor(taskId: TaskConfiguration, childTasks: TaskNode[], parentsID: TaskConfiguration[]);
7
+ addChildDependency(node: TaskNode): void;
8
+ addParentDependency(parentId: TaskConfiguration): void;
9
+ }
10
+ //# sourceMappingURL=task-node.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaskNode = void 0;
4
+ class TaskNode {
5
+ constructor(taskId, childTasks, parentsID) {
6
+ this.taskId = taskId;
7
+ this.childTasks = childTasks;
8
+ this.parentsID = parentsID;
9
+ }
10
+ addChildDependency(node) {
11
+ this.childTasks.push(node);
12
+ }
13
+ addParentDependency(parentId) {
14
+ this.parentsID.push(parentId);
15
+ }
16
+ }
17
+ exports.TaskNode = TaskNode;
18
+ //# sourceMappingURL=task-node.js.map
@@ -0,0 +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"}
@@ -0,0 +1,41 @@
1
+ import { Event, Emitter } from '@theia/core/lib/common';
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';
5
+ export declare class ProblemMatcherRegistry {
6
+ private readonly matchers;
7
+ private readyPromise;
8
+ protected readonly problemPatternRegistry: ProblemPatternRegistry;
9
+ protected readonly onDidChangeProblemMatcherEmitter: Emitter<void>;
10
+ get onDidChangeProblemMatcher(): Event<void>;
11
+ protected init(): void;
12
+ onReady(): Promise<void>;
13
+ /**
14
+ * Add a problem matcher to the registry.
15
+ *
16
+ * @param definition the problem matcher to be added.
17
+ */
18
+ register(matcher: ProblemMatcherContribution): Disposable;
19
+ protected doRegister(matcher: ProblemMatcherContribution, toDispose: DisposableCollection): Promise<void>;
20
+ /**
21
+ * Finds the problem matcher from the registry by its name.
22
+ *
23
+ * @param name the name of the problem matcher
24
+ * @return the problem matcher. If the task definition is not found, `undefined` is returned.
25
+ */
26
+ get(name: string): NamedProblemMatcher | undefined;
27
+ /**
28
+ * Returns all registered problem matchers in the registry.
29
+ */
30
+ getAll(): NamedProblemMatcher[];
31
+ /**
32
+ * Transforms the `ProblemMatcherContribution` to a `ProblemMatcher`
33
+ *
34
+ * @return the problem matcher
35
+ */
36
+ getProblemMatcherFromContribution(matcher: ProblemMatcherContribution): Promise<ProblemMatcher>;
37
+ private add;
38
+ private getFileLocationKindAndPrefix;
39
+ private fillDefaults;
40
+ }
41
+ //# sourceMappingURL=task-problem-matcher-registry.d.ts.map
@@ -0,0 +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;AAIzE,qBACa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0C;IACnE,OAAO,CAAC,YAAY,CAAwB;IAG5C,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAElE,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"}
@@ -0,0 +1,302 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2019 Ericsson and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ProblemMatcherRegistry = void 0;
19
+ const tslib_1 = require("tslib");
20
+ /*---------------------------------------------------------------------------------------------
21
+ * Copyright (c) Microsoft Corporation. All rights reserved.
22
+ * Licensed under the MIT License. See License.txt in the project root for license information.
23
+ *--------------------------------------------------------------------------------------------*/
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
+ let ProblemMatcherRegistry = class ProblemMatcherRegistry {
32
+ constructor() {
33
+ this.matchers = new Map();
34
+ this.readyPromise = new promise_util_1.Deferred();
35
+ this.onDidChangeProblemMatcherEmitter = new common_1.Emitter();
36
+ }
37
+ get onDidChangeProblemMatcher() {
38
+ return this.onDidChangeProblemMatcherEmitter.event;
39
+ }
40
+ init() {
41
+ this.problemPatternRegistry.onReady().then(() => {
42
+ this.fillDefaults();
43
+ this.readyPromise.resolve();
44
+ this.onDidChangeProblemMatcherEmitter.fire(undefined);
45
+ });
46
+ }
47
+ onReady() {
48
+ return this.readyPromise.promise;
49
+ }
50
+ /**
51
+ * Add a problem matcher to the registry.
52
+ *
53
+ * @param definition the problem matcher to be added.
54
+ */
55
+ register(matcher) {
56
+ if (!matcher.name) {
57
+ console.error('Only named Problem Matchers can be registered.');
58
+ return disposable_1.Disposable.NULL;
59
+ }
60
+ const toDispose = new disposable_1.DisposableCollection(disposable_1.Disposable.create(() => {
61
+ /* mark as not disposed */
62
+ this.onDidChangeProblemMatcherEmitter.fire(undefined);
63
+ }));
64
+ this.doRegister(matcher, toDispose).then(() => this.onDidChangeProblemMatcherEmitter.fire(undefined));
65
+ return toDispose;
66
+ }
67
+ async doRegister(matcher, toDispose) {
68
+ const problemMatcher = await this.getProblemMatcherFromContribution(matcher);
69
+ if (toDispose.disposed) {
70
+ return;
71
+ }
72
+ toDispose.push(this.add(problemMatcher));
73
+ }
74
+ /**
75
+ * Finds the problem matcher from the registry by its name.
76
+ *
77
+ * @param name the name of the problem matcher
78
+ * @return the problem matcher. If the task definition is not found, `undefined` is returned.
79
+ */
80
+ get(name) {
81
+ return this.matchers.get((0, common_2.fromVariableName)(name));
82
+ }
83
+ /**
84
+ * Returns all registered problem matchers in the registry.
85
+ */
86
+ getAll() {
87
+ const all = [];
88
+ for (const matcherName of this.matchers.keys()) {
89
+ all.push(this.get(matcherName));
90
+ }
91
+ all.sort((one, other) => one.name.localeCompare(other.name));
92
+ return all;
93
+ }
94
+ /**
95
+ * Transforms the `ProblemMatcherContribution` to a `ProblemMatcher`
96
+ *
97
+ * @return the problem matcher
98
+ */
99
+ async getProblemMatcherFromContribution(matcher) {
100
+ let baseMatcher;
101
+ if (matcher.base) {
102
+ baseMatcher = this.get(matcher.base);
103
+ }
104
+ let fileLocation;
105
+ let filePrefix;
106
+ if (matcher.fileLocation === undefined) {
107
+ fileLocation = baseMatcher ? baseMatcher.fileLocation : common_2.FileLocationKind.Relative;
108
+ filePrefix = baseMatcher ? baseMatcher.filePrefix : '${workspaceFolder}';
109
+ }
110
+ else {
111
+ const locationAndPrefix = this.getFileLocationKindAndPrefix(matcher);
112
+ fileLocation = locationAndPrefix.fileLocation;
113
+ filePrefix = locationAndPrefix.filePrefix;
114
+ }
115
+ const patterns = [];
116
+ if (matcher.pattern) {
117
+ if (typeof matcher.pattern === 'string') {
118
+ await this.problemPatternRegistry.onReady();
119
+ const registeredPattern = this.problemPatternRegistry.get((0, common_2.fromVariableName)(matcher.pattern));
120
+ if (Array.isArray(registeredPattern)) {
121
+ patterns.push(...registeredPattern);
122
+ }
123
+ else if (!!registeredPattern) {
124
+ patterns.push(registeredPattern);
125
+ }
126
+ }
127
+ else if (Array.isArray(matcher.pattern)) {
128
+ patterns.push(...matcher.pattern.map(p => common_2.ProblemPattern.fromProblemPatternContribution(p)));
129
+ }
130
+ else {
131
+ patterns.push(common_2.ProblemPattern.fromProblemPatternContribution(matcher.pattern));
132
+ }
133
+ }
134
+ else if (baseMatcher) {
135
+ if (Array.isArray(baseMatcher.pattern)) {
136
+ patterns.push(...baseMatcher.pattern);
137
+ }
138
+ else {
139
+ patterns.push(baseMatcher.pattern);
140
+ }
141
+ }
142
+ let deprecated = matcher.deprecated;
143
+ if (deprecated === undefined && baseMatcher) {
144
+ deprecated = baseMatcher.deprecated;
145
+ }
146
+ let applyTo;
147
+ if (matcher.applyTo === undefined) {
148
+ applyTo = baseMatcher ? baseMatcher.applyTo : common_2.ApplyToKind.allDocuments;
149
+ }
150
+ else {
151
+ applyTo = common_2.ApplyToKind.fromString(matcher.applyTo) || common_2.ApplyToKind.allDocuments;
152
+ }
153
+ let severity = severity_1.Severity.fromValue(matcher.severity);
154
+ if (matcher.severity === undefined && baseMatcher && baseMatcher.severity !== undefined) {
155
+ severity = baseMatcher.severity;
156
+ }
157
+ let watching = common_2.WatchingMatcher.fromWatchingMatcherContribution(matcher.background || matcher.watching);
158
+ if (watching === undefined && baseMatcher) {
159
+ watching = baseMatcher.watching;
160
+ }
161
+ const problemMatcher = {
162
+ name: matcher.name || (baseMatcher ? baseMatcher.name : undefined),
163
+ label: matcher.label || (baseMatcher === null || baseMatcher === void 0 ? void 0 : baseMatcher.label) || '',
164
+ deprecated,
165
+ owner: matcher.owner || (baseMatcher ? baseMatcher.owner : ''),
166
+ source: matcher.source || (baseMatcher ? baseMatcher.source : undefined),
167
+ applyTo,
168
+ fileLocation,
169
+ filePrefix,
170
+ pattern: patterns,
171
+ severity,
172
+ watching
173
+ };
174
+ return problemMatcher;
175
+ }
176
+ add(matcher) {
177
+ this.matchers.set(matcher.name, matcher);
178
+ return disposable_1.Disposable.create(() => this.matchers.delete(matcher.name));
179
+ }
180
+ getFileLocationKindAndPrefix(matcher) {
181
+ let fileLocation = common_2.FileLocationKind.Relative;
182
+ let filePrefix = '${workspaceFolder}';
183
+ if (matcher.fileLocation !== undefined) {
184
+ if (Array.isArray(matcher.fileLocation)) {
185
+ if (matcher.fileLocation.length > 0) {
186
+ const locationKind = common_2.FileLocationKind.fromString(matcher.fileLocation[0]);
187
+ if (matcher.fileLocation.length === 1 && locationKind === common_2.FileLocationKind.Absolute) {
188
+ fileLocation = locationKind;
189
+ }
190
+ else if (matcher.fileLocation.length === 2 && locationKind === common_2.FileLocationKind.Relative && matcher.fileLocation[1]) {
191
+ fileLocation = locationKind;
192
+ filePrefix = matcher.fileLocation[1];
193
+ }
194
+ }
195
+ }
196
+ else {
197
+ const locationKind = common_2.FileLocationKind.fromString(matcher.fileLocation);
198
+ if (locationKind) {
199
+ fileLocation = locationKind;
200
+ if (locationKind === common_2.FileLocationKind.Relative) {
201
+ filePrefix = '${workspaceFolder}';
202
+ }
203
+ }
204
+ }
205
+ }
206
+ return { fileLocation, filePrefix };
207
+ }
208
+ // copied from https://github.com/Microsoft/vscode/blob/1.33.1/src/vs/workbench/contrib/tasks/common/problemMatcher.ts
209
+ fillDefaults() {
210
+ this.add({
211
+ name: 'msCompile',
212
+ label: common_1.nls.localizeByDefault('Microsoft compiler problems'),
213
+ owner: 'msCompile',
214
+ applyTo: common_2.ApplyToKind.allDocuments,
215
+ fileLocation: common_2.FileLocationKind.Absolute,
216
+ pattern: (this.problemPatternRegistry.get('msCompile'))
217
+ });
218
+ this.add({
219
+ name: 'lessCompile',
220
+ label: common_1.nls.localizeByDefault('Less problems'),
221
+ deprecated: true,
222
+ owner: 'lessCompile',
223
+ source: 'less',
224
+ applyTo: common_2.ApplyToKind.allDocuments,
225
+ fileLocation: common_2.FileLocationKind.Absolute,
226
+ pattern: (this.problemPatternRegistry.get('lessCompile')),
227
+ severity: severity_1.Severity.Error
228
+ });
229
+ this.add({
230
+ name: 'gulp-tsc',
231
+ label: common_1.nls.localizeByDefault('Gulp TSC Problems'),
232
+ owner: 'typescript',
233
+ source: 'ts',
234
+ applyTo: common_2.ApplyToKind.closedDocuments,
235
+ fileLocation: common_2.FileLocationKind.Relative,
236
+ filePrefix: '${workspaceFolder}',
237
+ pattern: (this.problemPatternRegistry.get('gulp-tsc'))
238
+ });
239
+ this.add({
240
+ name: 'jshint',
241
+ label: common_1.nls.localizeByDefault('JSHint problems'),
242
+ owner: 'jshint',
243
+ source: 'jshint',
244
+ applyTo: common_2.ApplyToKind.allDocuments,
245
+ fileLocation: common_2.FileLocationKind.Absolute,
246
+ pattern: (this.problemPatternRegistry.get('jshint'))
247
+ });
248
+ this.add({
249
+ name: 'jshint-stylish',
250
+ label: common_1.nls.localizeByDefault('JSHint stylish problems'),
251
+ owner: 'jshint',
252
+ source: 'jshint',
253
+ applyTo: common_2.ApplyToKind.allDocuments,
254
+ fileLocation: common_2.FileLocationKind.Absolute,
255
+ pattern: (this.problemPatternRegistry.get('jshint-stylish'))
256
+ });
257
+ this.add({
258
+ name: 'eslint-compact',
259
+ label: common_1.nls.localizeByDefault('ESLint compact problems'),
260
+ owner: 'eslint',
261
+ source: 'eslint',
262
+ applyTo: common_2.ApplyToKind.allDocuments,
263
+ fileLocation: common_2.FileLocationKind.Absolute,
264
+ filePrefix: '${workspaceFolder}',
265
+ pattern: (this.problemPatternRegistry.get('eslint-compact'))
266
+ });
267
+ this.add({
268
+ name: 'eslint-stylish',
269
+ label: common_1.nls.localizeByDefault('ESLint stylish problems'),
270
+ owner: 'eslint',
271
+ source: 'eslint',
272
+ applyTo: common_2.ApplyToKind.allDocuments,
273
+ fileLocation: common_2.FileLocationKind.Absolute,
274
+ pattern: (this.problemPatternRegistry.get('eslint-stylish'))
275
+ });
276
+ this.add({
277
+ name: 'go',
278
+ label: common_1.nls.localizeByDefault('Go problems'),
279
+ owner: 'go',
280
+ source: 'go',
281
+ applyTo: common_2.ApplyToKind.allDocuments,
282
+ fileLocation: common_2.FileLocationKind.Relative,
283
+ filePrefix: '${workspaceFolder}',
284
+ pattern: (this.problemPatternRegistry.get('go'))
285
+ });
286
+ }
287
+ };
288
+ exports.ProblemMatcherRegistry = ProblemMatcherRegistry;
289
+ tslib_1.__decorate([
290
+ (0, inversify_1.inject)(task_problem_pattern_registry_1.ProblemPatternRegistry),
291
+ tslib_1.__metadata("design:type", task_problem_pattern_registry_1.ProblemPatternRegistry)
292
+ ], ProblemMatcherRegistry.prototype, "problemPatternRegistry", void 0);
293
+ tslib_1.__decorate([
294
+ (0, inversify_1.postConstruct)(),
295
+ tslib_1.__metadata("design:type", Function),
296
+ tslib_1.__metadata("design:paramtypes", []),
297
+ tslib_1.__metadata("design:returntype", void 0)
298
+ ], ProblemMatcherRegistry.prototype, "init", null);
299
+ exports.ProblemMatcherRegistry = ProblemMatcherRegistry = tslib_1.__decorate([
300
+ (0, inversify_1.injectable)()
301
+ ], ProblemMatcherRegistry);
302
+ //# sourceMappingURL=task-problem-matcher-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-problem-matcher-registry.js","sourceRoot":"","sources":["../../src/browser/task-problem-matcher-registry.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;;;gGAGgG;AAEhG,4DAAiF;AACjF,mDAA6D;AAC7D,kEAAqF;AACrF,sCAImB;AACnB,mF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AC,IAAI,CAAC,CAAE;SACpD,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAjRY,wDAAsB;AAMZ;IADlB,IAAA,kBAAM,EAAC,sDAAsB,CAAC;sCACY,sDAAsB;sEAAC;AAQxD;IADT,IAAA,yBAAa,GAAE;;;;kDAOf;iCApBQ,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAiRlC"}
@@ -0,0 +1,24 @@
1
+ import { Disposable } from '@theia/core/lib/common/disposable';
2
+ import { NamedProblemPattern, ProblemPatternContribution } from '../common';
3
+ export declare class ProblemPatternRegistry {
4
+ private readonly patterns;
5
+ private readyPromise;
6
+ protected init(): void;
7
+ onReady(): Promise<void>;
8
+ /**
9
+ * Add a problem pattern to the registry.
10
+ *
11
+ * @param definition the problem pattern to be added.
12
+ */
13
+ register(value: ProblemPatternContribution | ProblemPatternContribution[]): Disposable;
14
+ /**
15
+ * Finds the problem pattern(s) from the registry with the given name.
16
+ *
17
+ * @param key the name of the problem patterns
18
+ * @return a problem pattern or an array of the problem patterns associated with the name. If no problem patterns are found, `undefined` is returned.
19
+ */
20
+ get(key: string): undefined | NamedProblemPattern | NamedProblemPattern[];
21
+ private add;
22
+ private fillDefaults;
23
+ }
24
+ //# sourceMappingURL=task-problem-pattern-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-problem-pattern-registry.d.ts","sourceRoot":"","sources":["../../src/browser/task-problem-pattern-registry.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,UAAU,EAAwB,MAAM,mCAAmC,CAAC;AAGrF,OAAO,EAAE,mBAAmB,EAAuC,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAEjH,qBACa,sBAAsB;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkE;IAC3F,OAAO,CAAC,YAAY,CAAwB;IAG5C,SAAS,CAAC,IAAI,IAAI,IAAI;IAKtB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,0BAA0B,GAAG,0BAA0B,EAAE,GAAG,UAAU;IActF;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB,GAAG,mBAAmB,EAAE;IAIzE,OAAO,CAAC,GAAG;IAYX,OAAO,CAAC,YAAY;CAiHvB"}