taskConfiguration.ts ×11

Frontier kind: Code frontier

unlabeled · c_ecdbf17b118b

11 tests · 20853 LOC · 80 files · introduces 0 tests · 15 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
11 ranges15 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2325 ranges20853 lines · 80 files · Browse complete extent
All tests (intent)
11 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 15 introduced LOC across 11 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/tasks/common/taskConfiguration.ts 15 introduced LOC · 11 ranges

Open complete file

1230 return { value: result };
1231 }
1232 > const errors: string[] = []; taskConfiguration.ts
1233 > function addResult(matcher: TaskConfigurationValueWithErrors<ProblemMatcher>) {
1234 > if (matcher.value) {
1235 result.push(matcher.value);
1236 }
1237 > if (matcher.errors) { taskConfiguration.ts
1238 errors.push(...matcher.errors);
1239 }
1241 > const kind = getProblemMatcherKind(config);
1242 > if (kind === ProblemMatcherKind.Unknown) {
1243 const error = nls.localize(
1244 'ConfigurationParser.unknownMatcherKind',
1246 JSON.stringify(config, null, 4));
1247 context.problemReporter.warn(error);
1248 > } else if (kind === ProblemMatcherKind.String || kind === ProblemMatcherKind.ProblemMatcher) { taskConfiguration.ts
1249 addResult(resolveProblemMatcher(config as ProblemMatcherConfig.ProblemMatcher, context));
1250 > } else if (kind === ProblemMatcherKind.Array) { taskConfiguration.ts
1251 const problemMatchers = <(string | ProblemMatcherConfig.ProblemMatcher)[]>config;
1252 problemMatchers.forEach(problemMatcher => {
1254 });
1255 }
1256 > return { value: result, errors }; taskConfiguration.ts
1257 }
1258
1259 function getProblemMatcherKind(this: void, value: ProblemMatcherConfig.ProblemMatcherType): ProblemMatcherKind {
1260 > if (Types.isString(value)) { taskConfiguration.ts
1261 return ProblemMatcherKind.String;
1262 > } else if (Array.isArray(value)) { taskConfiguration.ts
1263 return ProblemMatcherKind.Array;
1264 } else if (!Types.isUndefined(value)) {
1267 return ProblemMatcherKind.Unknown;
1268 }
1270
1271 function resolveProblemMatcher(this: void, value: string | ProblemMatcherConfig.ProblemMatcher, context: IParseContext): TaskConfigurationValueWithErrors<ProblemMatcher> {
1272 > if (Types.isString(value)) { taskConfiguration.ts
1273 let variableName = <string>value;
1274 if (variableName.length > 1 && variableName[0] === '$') {
1291 return { value: new ProblemMatcherParser(context.problemReporter).parse(json) };
1292 }
1294 }
1295