taskConfiguration.ts ×11

Frontier kind: Code frontier

unlabeled · c_80d237f40056

34 tests · 21115 LOC · 80 files · introduces 0 tests · 44 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
11 ranges44 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2429 ranges21115 lines · 80 files · Browse complete extent
All tests (intent)
34 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: 44 introduced LOC across 11 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

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

Open complete file

1585 return undefined;
1586 }
1588 > let taskSource: Tasks.FileBasedTaskSource;
1589 > switch (source) {
1590 > case TaskConfigSource.User: {
1591 taskSource = { kind: Tasks.TaskSourceKind.User, config: { index, element: external, file: '.vscode/tasks.json', workspaceFolder: context.workspaceFolder }, label };
1592 break;
1597 }
1598 default: {
1599 > taskSource = { kind: Tasks.TaskSourceKind.Workspace, config: { index, element: external, file: '.vscode/tasks.json', workspaceFolder: context.workspaceFolder }, label }; taskConfiguration.ts
1600 > break;
1601 > }
1602 }
1604 > const result: Tasks.CustomTask = new Tasks.CustomTask(
1605 > context.uuidMap.getUUID(taskName),
1606 > taskSource,
1607 > taskName,
1608 > Tasks.CUSTOMIZED_TASK_TYPE,
1609 > undefined,
1610 > false,
1611 > RunOptions.fromConfiguration(external.runOptions),
1612 > {
1613 > name: taskName,
1614 > identifier: taskName,
1615 > }
1616 > );
1617 > const configuration = ConfigurationProperties.from(external as IConfigurationProperties & { [key: string]: unknown }, context, false, source);
1618 > result.addTaskLoadMessages(configuration.errors);
1619 > if (configuration.value) {
1620 > result.configurationProperties = Object.assign(result.configurationProperties, configuration.value);
1621 > }
1622 > const supportLegacy: boolean = true; //context.schemaVersion === Tasks.JsonSchemaVersion.V2_0_0;
1623 > if (supportLegacy) {
1624 > const legacy: ILegacyTaskProperties = external as ILegacyTaskProperties;
1625 > if (result.configurationProperties.isBackground === undefined && legacy.isWatching !== undefined) {
1626 result.configurationProperties.isBackground = !!legacy.isWatching;
1627 }
1628 > if (result.configurationProperties.group === undefined) { taskConfiguration.ts
1629 > if (legacy.isBuildCommand === true) {
1630 result.configurationProperties.group = Tasks.TaskGroup.Build;
1631 > } else if (legacy.isTestCommand === true) { taskConfiguration.ts
1632 result.configurationProperties.group = Tasks.TaskGroup.Test;
1633 }
1635 > }
1636 > const command: Tasks.ICommandConfiguration = CommandConfiguration.from(external, context)!;
1637 > if (command) {
1638 result.command = command;
1639 }
1640 > if (external.command !== undefined) { taskConfiguration.ts
1641 // if the task has its own command then we suppress the
1642 // task name by default.
1643 command.suppressTaskName = true;
1644 }
1645 > return result; taskConfiguration.ts
1646 }
1647
1780 const customTask = CustomTask.from(external, context, index, source);
1781 if (customTask) {
1782 > CustomTask.fillGlobals(customTask, globals); taskConfiguration.ts
1783 > CustomTask.fillDefaults(customTask, context);
1784 > if (schema2_0_0) {
1785 if ((customTask.command === undefined || customTask.command.name === undefined) && (customTask.configurationProperties.dependsOn === undefined || customTask.configurationProperties.dependsOn.length === 0)) {
1786 context.problemReporter.error(nls.localize(
1790 continue;
1791 }
1792 > } else { taskConfiguration.ts
1793 if (customTask.command === undefined || customTask.command.name === undefined) {
1794 context.problemReporter.warn(nls.localize(
1799 }
1800 }
1801 > if (customTask.configurationProperties.group === Tasks.TaskGroup.Build && defaultBuildTask.rank < 2) { taskConfiguration.ts
1802 defaultBuildTask.task = customTask;
1803 defaultBuildTask.rank = 2;