taskConfiguration.ts ×12

Frontier kind: Code frontier

unlabeled · c_eba5d2f9ad6e

3 tests · 21154 LOC · 80 files · introduces 0 tests · 31 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
12 ranges31 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2442 ranges21154 lines · 80 files · Browse complete extent
All tests (intent)
3 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: 31 introduced LOC across 12 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/tasks/common/taskConfiguration.ts 31 introduced LOC · 12 ranges

Open complete file

565 Object.freeze(EMPTY_ARRAY);
566
567 > function assignProperty<T, K extends keyof T>(target: T, source: Partial<T>, key: K) { taskConfiguration.ts
568 > const sourceAtKey = source[key];
569 > if (sourceAtKey !== undefined) {
570 target[key] = sourceAtKey!;
571 }
573
574 function fillProperty<T, K extends keyof T>(target: T, source: Partial<T>, key: K) {
613
614 // eslint-disable-next-line @typescript-eslint/no-explicit-any -- IMetaData array holds heterogeneous parser types
615 > function _assignProperties<T>(this: void, target: T | undefined, source: T | undefined, properties: IMetaData<T, any>[]): T | undefined { taskConfiguration.ts
616 > if (!source || _isEmpty(source, properties)) {
617 > return target;
618 > }
619 > if (!target || _isEmpty(target, properties)) {
620 return source;
621 }
858
859 export function assignProperties(target: Tasks.CommandOptions | undefined, source: Tasks.CommandOptions | undefined): Tasks.CommandOptions | undefined {
860 > if ((source === undefined) || isEmpty(source)) { taskConfiguration.ts
861 > return target;
862 > }
863 > if ((target === undefined) || isEmpty(target)) {
864 return source;
865 }
879 target.shell = ShellConfiguration.assignProperties(target.shell, source.shell);
880 return target;
882
883 export function fillProperties(target: Tasks.CommandOptions | undefined, source: Tasks.CommandOptions | undefined): Tasks.CommandOptions | undefined {
964
965 export function assignProperties(target: Tasks.IPresentationOptions, source: Tasks.IPresentationOptions | undefined): Tasks.IPresentationOptions | undefined {
966 > return _assignProperties(target, source, properties); taskConfiguration.ts
967 > }
968
969 export function fillProperties(target: Tasks.IPresentationOptions, source: Tasks.IPresentationOptions | undefined): Tasks.IPresentationOptions | undefined {
1034 osConfig = fromBase(config.osx, context);
1035 } else if (config.linux && context.platform === Platform.Linux) {
1036 > osConfig = fromBase(config.linux, context); taskConfiguration.ts
1037 > }
1038 if (osConfig) {
1039 > result = assignProperties(result, osConfig, context.schemaVersion === Tasks.JsonSchemaVersion.V2_0_0); taskConfiguration.ts
1040 > }
1041 return isEmpty(result) ? undefined : result;
1042 }
1107
1108 export function assignProperties(target: Tasks.ICommandConfiguration, source: Tasks.ICommandConfiguration, overwriteArgs: boolean): Tasks.ICommandConfiguration {
1109 > if (isEmpty(source)) { taskConfiguration.ts
1110 return target;
1111 }
1112 > if (isEmpty(target)) { taskConfiguration.ts
1113 return source;
1114 }
1115 > assignProperty(target, source, 'name'); taskConfiguration.ts
1116 > assignProperty(target, source, 'runtime');
1117 > assignProperty(target, source, 'taskSelector');
1118 > assignProperty(target, source, 'suppressTaskName');
1119 > if (source.args !== undefined) {
1120 if (target.args === undefined || overwriteArgs) {
1121 target.args = source.args;
1124 }
1125 }
1126 > target.presentation = PresentationOptions.assignProperties(target.presentation!, source.presentation)!; taskConfiguration.ts
1127 > target.options = CommandOptions.assignProperties(target.options, source.options);
1128 > return target;
1129 > }
1130
1131 export function fillProperties(target: Tasks.ICommandConfiguration, source: Tasks.ICommandConfiguration): Tasks.ICommandConfiguration | undefined {