taskConfiguration.ts ×10

Frontier kind: Code frontier

unlabeled · c_adc061f85097

35 tests · 20879 LOC · 80 files · introduces 0 tests · 13 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges13 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2334 ranges20879 lines · 80 files · Browse complete extent
All tests (intent)
35 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: 13 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/tasks/common/taskConfiguration.ts 13 introduced LOC · 10 ranges

Open complete file

1566 namespace CustomTask {
1567 export function from(this: void, external: ICustomTask, context: IParseContext, index: number, source: TaskConfigSource): Tasks.CustomTask | undefined {
1568 > if (!external) { taskConfiguration.ts
1569 return undefined;
1570 }
1571 > let type = external.type; taskConfiguration.ts
1572 > if (type === undefined || type === null) {
1573 type = Tasks.CUSTOMIZED_TASK_TYPE;
1574 }
1575 > if (type !== Tasks.CUSTOMIZED_TASK_TYPE && type !== 'shell' && type !== 'process') { taskConfiguration.ts
1576 context.problemReporter.error(nls.localize('ConfigurationParser.notCustom', 'Error: tasks is not declared as a custom task. The configuration will be ignored.\n{0}\n', JSON.stringify(external, null, 4)));
1577 return undefined;
1578 }
1579 > let taskName = external.taskName; taskConfiguration.ts
1580 > if (Types.isString(external.label) && context.schemaVersion === Tasks.JsonSchemaVersion.V2_0_0) {
1581 taskName = external.label;
1582 }
1583 > if (!taskName) { taskConfiguration.ts
1584 context.problemReporter.error(nls.localize('ConfigurationParser.noTaskName', 'Error: a task must provide a label property. The task will be ignored.\n{0}\n', JSON.stringify(external, null, 4)));
1585 return undefined;
1592 break;
1593 }
1594 > case TaskConfigSource.WorkspaceFile: { taskConfiguration.ts
1595 taskSource = { kind: Tasks.TaskSourceKind.WorkspaceFile, config: { index, element: external, file: '.vscode/tasks.json', workspaceFolder: context.workspaceFolder, workspace: context.workspace }, label };
1596 break;
1597 }
1598 > default: { taskConfiguration.ts
1599 taskSource = { kind: Tasks.TaskSourceKind.Workspace, config: { index, element: external, file: '.vscode/tasks.json', workspaceFolder: context.workspaceFolder }, label };
1600 break;
1601 }
1603
1604 const result: Tasks.CustomTask = new Tasks.CustomTask(
1644 }
1645 return result;
1647
1648 export function fillGlobals(task: Tasks.CustomTask, globals: IGlobals): void {
1778
1779 if (isCustomTask(external)) {
1780 > const customTask = CustomTask.from(external, context, index, source); taskConfiguration.ts
1781 > if (customTask) {
1782 CustomTask.fillGlobals(customTask, globals);
1783 CustomTask.fillDefaults(customTask, context);