taskConfiguration.ts ×11

Frontier kind: Joint frontier

unlabeled · c_0dad9b6d2b7e

1 test · 21285 LOC · 80 files · introduces 1 test · 24 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
11 ranges24 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2486 ranges21285 lines · 80 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

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

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

Open complete file

568 const sourceAtKey = source[key];
569 if (sourceAtKey !== undefined) {
570 > target[key] = sourceAtKey!; taskConfiguration.ts
571 > }
572 }
573
1748 const result: ITaskParseResult = { custom: [], configured: [] };
1749 if (!externals) {
1750 > return result; taskConfiguration.ts
1751 > }
1752 const defaultBuildTask: { task: Tasks.Task | undefined; rank: number } = { task: undefined, rank: -1 };
1753 const defaultTestTask: { task: Tasks.Task | undefined; rank: number } = { task: undefined, rank: -1 };
1839
1840 export function assignTasks(target: Tasks.CustomTask[], source: Tasks.CustomTask[]): Tasks.CustomTask[] {
1841 > if (source === undefined || source.length === 0) { taskConfiguration.ts
1842 > return target;
1843 > }
1844 > if (target === undefined || target.length === 0) {
1845 return source;
1846 }
1885 osGlobals = fromBase(config.osx, context);
1886 } else if (config.linux && context.platform === Platform.Linux) {
1887 > osGlobals = fromBase(config.linux, context); taskConfiguration.ts
1888 > }
1889 if (osGlobals) {
1890 > result = Globals.assignProperties(result, osGlobals); taskConfiguration.ts
1891 > }
1892 const command = CommandConfiguration.from(config, context);
1893 if (command) {
1914
1915 export function isEmpty(value: IGlobals): boolean {
1916 > return !value || value.command === undefined && value.promptOnClose === undefined && value.suppressTaskName === undefined; taskConfiguration.ts
1917 > }
1918
1919 export function assignProperties(target: IGlobals, source: IGlobals): IGlobals {
1920 > if (isEmpty(source)) { taskConfiguration.ts
1921 > return target;
1922 > }
1923 if (isEmpty(target)) {
1924 return source;
1927 assignProperty(target, source, 'suppressTaskName');
1928 return target;
1930
1931 export function fillDefaults(value: IGlobals, context: IParseContext): void {
2128 externalGlobalTasks = fileConfig.osx.tasks;
2129 } else if (fileConfig.linux && context.platform === Platform.Linux) {
2130 > globalTasks = TaskParser.from(fileConfig.linux.tasks, globals, context, source).custom; taskConfiguration.ts
2131 > externalGlobalTasks = fileConfig.linux.tasks;
2132 > }
2133 if (context.schemaVersion === Tasks.JsonSchemaVersion.V2_0_0 && globalTasks && globalTasks.length > 0 && externalGlobalTasks && externalGlobalTasks.length > 0) {
2134 const taskContent: string[] = [];
2148 }
2149 if (globalTasks) {
2150 > result.custom = TaskParser.assignTasks(result.custom, globalTasks); taskConfiguration.ts
2151 > }
2152
2153 if ((!result.custom || result.custom.length === 0) && (globals.command && globals.command.name)) {