@codingame/monaco-vscode-task-service-override 26.2.2 → 28.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.d.ts +2 -2
  3. package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +146 -150
  4. package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.d.ts +1 -1
  5. package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +8 -8
  6. package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +48 -48
  7. package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +17 -17
  8. package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +1 -1
  9. package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +11 -11
  10. package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +2 -2
  11. package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +53 -37
  12. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +42 -42
  13. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +14 -10
  14. package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +95 -84
  15. package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.d.ts +6 -4
  16. package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +34 -13
  17. package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.d.ts +1 -1
  18. package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +4 -4
  19. package/vscode/src/vs/base/common/parsers.d.ts +0 -32
  20. package/vscode/src/vs/base/common/parsers.js +0 -54
  21. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.d.ts +0 -432
  22. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +0 -1627
  23. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +0 -510
  24. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +0 -1790
@@ -1,432 +0,0 @@
1
- import * as Types from "@codingame/monaco-vscode-api/vscode/vs/base/common/types";
2
- import Severity from "@codingame/monaco-vscode-api/vscode/vs/base/common/severity";
3
- import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
- import { IJSONSchema } from "@codingame/monaco-vscode-api/vscode/vs/base/common/jsonSchema";
5
- import { ValidationStatus, IProblemReporter, Parser } from "../../../../base/common/parsers.js";
6
- import { IMarkerData } from "@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers";
7
- import { ExtensionMessageCollector } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry";
8
- import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
9
- import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
10
- export declare enum FileLocationKind {
11
- Default = 0,
12
- Relative = 1,
13
- Absolute = 2,
14
- AutoDetect = 3,
15
- Search = 4
16
- }
17
- export declare namespace FileLocationKind {
18
- function fromString(value: string): FileLocationKind | undefined;
19
- }
20
- export declare enum ProblemLocationKind {
21
- File = 0,
22
- Location = 1
23
- }
24
- export declare namespace ProblemLocationKind {
25
- function fromString(value: string): ProblemLocationKind | undefined;
26
- }
27
- export interface IProblemPattern {
28
- regexp: RegExp;
29
- kind?: ProblemLocationKind;
30
- file?: number;
31
- message?: number;
32
- location?: number;
33
- line?: number;
34
- character?: number;
35
- endLine?: number;
36
- endCharacter?: number;
37
- code?: number;
38
- severity?: number;
39
- loop?: boolean;
40
- }
41
- export interface INamedProblemPattern extends IProblemPattern {
42
- name: string;
43
- }
44
- export type MultiLineProblemPattern = IProblemPattern[];
45
- export interface IWatchingPattern {
46
- regexp: RegExp;
47
- file?: number;
48
- }
49
- export interface IWatchingMatcher {
50
- activeOnStart: boolean;
51
- beginsPattern: IWatchingPattern;
52
- endsPattern: IWatchingPattern;
53
- }
54
- export declare enum ApplyToKind {
55
- allDocuments = 0,
56
- openDocuments = 1,
57
- closedDocuments = 2
58
- }
59
- export declare namespace ApplyToKind {
60
- function fromString(value: string): ApplyToKind | undefined;
61
- }
62
- export interface ProblemMatcher {
63
- owner: string;
64
- source?: string;
65
- applyTo: ApplyToKind;
66
- fileLocation: FileLocationKind;
67
- filePrefix?: string | Config.SearchFileLocationArgs;
68
- pattern: Types.SingleOrMany<IProblemPattern>;
69
- severity?: Severity;
70
- watching?: IWatchingMatcher;
71
- uriProvider?: (path: string) => URI;
72
- }
73
- export interface INamedProblemMatcher extends ProblemMatcher {
74
- name: string;
75
- label: string;
76
- deprecated?: boolean;
77
- }
78
- export interface INamedMultiLineProblemPattern {
79
- name: string;
80
- label: string;
81
- patterns: MultiLineProblemPattern;
82
- }
83
- export declare function isNamedProblemMatcher(value: ProblemMatcher | undefined): value is INamedProblemMatcher;
84
- export interface IProblemMatch {
85
- resource: Promise<URI>;
86
- marker: IMarkerData;
87
- description: ProblemMatcher;
88
- }
89
- export interface IHandleResult {
90
- match: IProblemMatch | null;
91
- continue: boolean;
92
- }
93
- export declare function getResource(filename: string, matcher: ProblemMatcher, fileService?: IFileService): Promise<URI>;
94
- export interface ILineMatcher {
95
- matchLength: number;
96
- next(line: string): IProblemMatch | null;
97
- handle(lines: string[], start?: number): IHandleResult;
98
- }
99
- export declare function createLineMatcher(matcher: ProblemMatcher, fileService?: IFileService): ILineMatcher;
100
- export declare namespace Config {
101
- interface IProblemPattern {
102
- /**
103
- * The regular expression to find a problem in the console output of an
104
- * executed task.
105
- */
106
- regexp?: string;
107
- /**
108
- * Whether the pattern matches a whole file, or a location (file/line)
109
- *
110
- * The default is to match for a location. Only valid on the
111
- * first problem pattern in a multi line problem matcher.
112
- */
113
- kind?: string;
114
- /**
115
- * The match group index of the filename.
116
- * If omitted 1 is used.
117
- */
118
- file?: number;
119
- /**
120
- * The match group index of the problem's location. Valid location
121
- * patterns are: (line), (line,column) and (startLine,startColumn,endLine,endColumn).
122
- * If omitted the line and column properties are used.
123
- */
124
- location?: number;
125
- /**
126
- * The match group index of the problem's line in the source file.
127
- *
128
- * Defaults to 2.
129
- */
130
- line?: number;
131
- /**
132
- * The match group index of the problem's column in the source file.
133
- *
134
- * Defaults to 3.
135
- */
136
- column?: number;
137
- /**
138
- * The match group index of the problem's end line in the source file.
139
- *
140
- * Defaults to undefined. No end line is captured.
141
- */
142
- endLine?: number;
143
- /**
144
- * The match group index of the problem's end column in the source file.
145
- *
146
- * Defaults to undefined. No end column is captured.
147
- */
148
- endColumn?: number;
149
- /**
150
- * The match group index of the problem's severity.
151
- *
152
- * Defaults to undefined. In this case the problem matcher's severity
153
- * is used.
154
- */
155
- severity?: number;
156
- /**
157
- * The match group index of the problem's code.
158
- *
159
- * Defaults to undefined. No code is captured.
160
- */
161
- code?: number;
162
- /**
163
- * The match group index of the message. If omitted it defaults
164
- * to 4 if location is specified. Otherwise it defaults to 5.
165
- */
166
- message?: number;
167
- /**
168
- * Specifies if the last pattern in a multi line problem matcher should
169
- * loop as long as it does match a line consequently. Only valid on the
170
- * last problem pattern in a multi line problem matcher.
171
- */
172
- loop?: boolean;
173
- }
174
- interface ICheckedProblemPattern extends IProblemPattern {
175
- /**
176
- * The regular expression to find a problem in the console output of an
177
- * executed task.
178
- */
179
- regexp: string;
180
- }
181
- namespace CheckedProblemPattern {
182
- function is(value: any): value is ICheckedProblemPattern;
183
- }
184
- interface INamedProblemPattern extends IProblemPattern {
185
- /**
186
- * The name of the problem pattern.
187
- */
188
- name: string;
189
- /**
190
- * A human readable label
191
- */
192
- label?: string;
193
- }
194
- namespace NamedProblemPattern {
195
- function is(value: any): value is INamedProblemPattern;
196
- }
197
- interface INamedCheckedProblemPattern extends INamedProblemPattern {
198
- /**
199
- * The regular expression to find a problem in the console output of an
200
- * executed task.
201
- */
202
- regexp: string;
203
- }
204
- namespace NamedCheckedProblemPattern {
205
- function is(value: any): value is INamedCheckedProblemPattern;
206
- }
207
- type MultiLineProblemPattern = IProblemPattern[];
208
- namespace MultiLineProblemPattern {
209
- function is(value: any): value is MultiLineProblemPattern;
210
- }
211
- type MultiLineCheckedProblemPattern = ICheckedProblemPattern[];
212
- namespace MultiLineCheckedProblemPattern {
213
- function is(value: any): value is MultiLineCheckedProblemPattern;
214
- }
215
- interface INamedMultiLineCheckedProblemPattern {
216
- /**
217
- * The name of the problem pattern.
218
- */
219
- name: string;
220
- /**
221
- * A human readable label
222
- */
223
- label?: string;
224
- /**
225
- * The actual patterns
226
- */
227
- patterns: MultiLineCheckedProblemPattern;
228
- }
229
- namespace NamedMultiLineCheckedProblemPattern {
230
- function is(value: any): value is INamedMultiLineCheckedProblemPattern;
231
- }
232
- type NamedProblemPatterns = (Config.INamedProblemPattern | Config.INamedMultiLineCheckedProblemPattern)[];
233
- /**
234
- * A watching pattern
235
- */
236
- interface IWatchingPattern {
237
- /**
238
- * The actual regular expression
239
- */
240
- regexp?: string;
241
- /**
242
- * The match group index of the filename. If provided the expression
243
- * is matched for that file only.
244
- */
245
- file?: number;
246
- }
247
- /**
248
- * A description to track the start and end of a watching task.
249
- */
250
- interface IBackgroundMonitor {
251
- /**
252
- * If set to true the watcher starts in active mode. This is the
253
- * same as outputting a line that matches beginsPattern when the
254
- * task starts.
255
- */
256
- activeOnStart?: boolean;
257
- /**
258
- * If matched in the output the start of a watching task is signaled.
259
- */
260
- beginsPattern?: string | IWatchingPattern;
261
- /**
262
- * If matched in the output the end of a watching task is signaled.
263
- */
264
- endsPattern?: string | IWatchingPattern;
265
- }
266
- /**
267
- * A description of a problem matcher that detects problems
268
- * in build output.
269
- */
270
- interface ProblemMatcher {
271
- /**
272
- * The name of a base problem matcher to use. If specified the
273
- * base problem matcher will be used as a template and properties
274
- * specified here will replace properties of the base problem
275
- * matcher
276
- */
277
- base?: string;
278
- /**
279
- * The owner of the produced VSCode problem. This is typically
280
- * the identifier of a VSCode language service if the problems are
281
- * to be merged with the one produced by the language service
282
- * or a generated internal id. Defaults to the generated internal id.
283
- */
284
- owner?: string;
285
- /**
286
- * A human-readable string describing the source of this problem.
287
- * E.g. 'typescript' or 'super lint'.
288
- */
289
- source?: string;
290
- /**
291
- * Specifies to which kind of documents the problems found by this
292
- * matcher are applied. Valid values are:
293
- *
294
- * "allDocuments": problems found in all documents are applied.
295
- * "openDocuments": problems found in documents that are open
296
- * are applied.
297
- * "closedDocuments": problems found in closed documents are
298
- * applied.
299
- */
300
- applyTo?: string;
301
- /**
302
- * The severity of the VSCode problem produced by this problem matcher.
303
- *
304
- * Valid values are:
305
- * "error": to produce errors.
306
- * "warning": to produce warnings.
307
- * "info": to produce infos.
308
- *
309
- * The value is used if a pattern doesn't specify a severity match group.
310
- * Defaults to "error" if omitted.
311
- */
312
- severity?: string;
313
- /**
314
- * Defines how filename reported in a problem pattern
315
- * should be read. Valid values are:
316
- * - "absolute": the filename is always treated absolute.
317
- * - "relative": the filename is always treated relative to
318
- * the current working directory. This is the default.
319
- * - ["relative", "path value"]: the filename is always
320
- * treated relative to the given path value.
321
- * - "autodetect": the filename is treated relative to
322
- * the current workspace directory, and if the file
323
- * does not exist, it is treated as absolute.
324
- * - ["autodetect", "path value"]: the filename is treated
325
- * relative to the given path value, and if it does not
326
- * exist, it is treated as absolute.
327
- * - ["search", { include?: "" | []; exclude?: "" | [] }]: The filename
328
- * needs to be searched under the directories named by the "include"
329
- * property and their nested subdirectories. With "exclude" property
330
- * present, the directories should be removed from the search. When
331
- * `include` is not unprovided, the current workspace directory should
332
- * be used as the default.
333
- */
334
- fileLocation?: Types.SingleOrMany<string> | [
335
- "search",
336
- SearchFileLocationArgs
337
- ];
338
- /**
339
- * The name of a predefined problem pattern, the inline definition
340
- * of a problem pattern or an array of problem patterns to match
341
- * problems spread over multiple lines.
342
- */
343
- pattern?: string | Types.SingleOrMany<IProblemPattern>;
344
- /**
345
- * A regular expression signaling that a watched tasks begins executing
346
- * triggered through file watching.
347
- */
348
- watchedTaskBeginsRegExp?: string;
349
- /**
350
- * A regular expression signaling that a watched tasks ends executing.
351
- */
352
- watchedTaskEndsRegExp?: string;
353
- /**
354
- * @deprecated Use background instead.
355
- */
356
- watching?: IBackgroundMonitor;
357
- background?: IBackgroundMonitor;
358
- }
359
- type SearchFileLocationArgs = {
360
- include?: Types.SingleOrMany<string>;
361
- exclude?: Types.SingleOrMany<string>;
362
- };
363
- type ProblemMatcherType = string | ProblemMatcher | Array<string | ProblemMatcher>;
364
- interface INamedProblemMatcher extends ProblemMatcher {
365
- /**
366
- * This name can be used to refer to the
367
- * problem matcher from within a task.
368
- */
369
- name: string;
370
- /**
371
- * A human readable label.
372
- */
373
- label?: string;
374
- }
375
- function isNamedProblemMatcher(value: ProblemMatcher): value is INamedProblemMatcher;
376
- }
377
- export declare class ProblemPatternParser extends Parser {
378
- constructor(logger: IProblemReporter);
379
- parse(value: Config.IProblemPattern): IProblemPattern;
380
- parse(value: Config.MultiLineProblemPattern): MultiLineProblemPattern;
381
- parse(value: Config.INamedProblemPattern): INamedProblemPattern;
382
- parse(value: Config.INamedMultiLineCheckedProblemPattern): INamedMultiLineProblemPattern;
383
- private createSingleProblemPattern;
384
- private createNamedMultiLineProblemPattern;
385
- private createMultiLineProblemPattern;
386
- private doCreateSingleProblemPattern;
387
- private validateProblemPattern;
388
- private createRegularExpression;
389
- }
390
- export declare class ExtensionRegistryReporter implements IProblemReporter {
391
- private _collector;
392
- private _validationStatus;
393
- constructor(_collector: ExtensionMessageCollector, _validationStatus?: ValidationStatus);
394
- info(message: string): void;
395
- warn(message: string): void;
396
- error(message: string): void;
397
- fatal(message: string): void;
398
- get status(): ValidationStatus;
399
- }
400
- export declare namespace Schemas {
401
- const ProblemPattern: IJSONSchema;
402
- const NamedProblemPattern: IJSONSchema;
403
- const MultiLineProblemPattern: IJSONSchema;
404
- const NamedMultiLineProblemPattern: IJSONSchema;
405
- const WatchingPattern: IJSONSchema;
406
- const PatternType: IJSONSchema;
407
- const ProblemMatcher: IJSONSchema;
408
- const LegacyProblemMatcher: IJSONSchema;
409
- const NamedProblemMatcher: IJSONSchema;
410
- }
411
- export interface IProblemPatternRegistry {
412
- onReady(): Promise<void>;
413
- get(key: string): IProblemPattern | MultiLineProblemPattern;
414
- }
415
- export declare const ProblemPatternRegistry: IProblemPatternRegistry;
416
- export declare class ProblemMatcherParser extends Parser {
417
- constructor(logger: IProblemReporter);
418
- parse(json: Config.ProblemMatcher): ProblemMatcher | undefined;
419
- private checkProblemMatcherValid;
420
- private createProblemMatcher;
421
- private createProblemPattern;
422
- private addWatchingMatcher;
423
- private createWatchingPattern;
424
- private createRegularExpression;
425
- }
426
- export interface IProblemMatcherRegistry {
427
- onReady(): Promise<void>;
428
- get(name: string): INamedProblemMatcher;
429
- keys(): string[];
430
- readonly onMatcherChanged: Event<void>;
431
- }
432
- export declare const ProblemMatcherRegistry: IProblemMatcherRegistry;