taskConfiguration.ts ×10

Frontier kind: Code frontier

unlabeled · c_6319e4f70146

3 tests · 21150 LOC · 80 files · introduces 0 tests · 18 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges18 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2443 ranges21150 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: 18 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

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

Open complete file

677 let value: T[keyof T] | undefined;
678 if (meta.type) {
679 > value = meta.type.fillDefaults(target[property], context); taskConfiguration.ts
680 } else {
681 value = defaults[property];
791
792 export function from(this: void, config: IShellConfiguration | undefined, context: IParseContext): Tasks.IShellConfiguration | undefined {
793 > if (!is(config)) { taskConfiguration.ts
794 > return undefined;
795 > }
796 const result: IShellConfiguration = {};
797 if (config.executable !== undefined) {
806
807 return result;
809
810 export function isEmpty(this: void, value: Tasks.IShellConfiguration): boolean {
821
822 export function fillDefaults(this: void, value: Tasks.IShellConfiguration, context: IParseContext): Tasks.IShellConfiguration {
823 > return value; taskConfiguration.ts
824 > }
825
826 export function freeze(this: void, value: Tasks.IShellConfiguration): Readonly<Tasks.IShellConfiguration> | undefined {
838
839 export function from(this: void, options: ICommandOptionsConfig, context: IParseContext): Tasks.CommandOptions | undefined {
840 > const result: Tasks.CommandOptions = {}; taskConfiguration.ts
841 > if (options.cwd !== undefined) {
842 if (Types.isString(options.cwd)) {
843 result.cwd = options.cwd;
846 }
847 }
848 > if (options.env !== undefined) { taskConfiguration.ts
849 result.env = Objects.deepClone(options.env);
850 }
851 > result.shell = ShellConfiguration.from(options.shell, context); taskConfiguration.ts
852 > return isEmpty(result) ? undefined : result;
853 > }
854
855 export function isEmpty(value: Tasks.CommandOptions | undefined): boolean {
856 > return _isEmpty(value, properties); taskConfiguration.ts
857 > }
858
859 export function assignProperties(target: Tasks.CommandOptions | undefined, source: Tasks.CommandOptions | undefined): Tasks.CommandOptions | undefined {
1079 }
1080 if (config.options !== undefined) {
1081 > result.options = CommandOptions.from(config.options, context); taskConfiguration.ts
1082 > if (result.options && result.options.shell === undefined && ShellConfiguration.is(config.isShellCommand)) {
1083 result.options.shell = ShellConfiguration.from(config.isShellCommand, context);
1084 if (context.engine !== Tasks.ExecutionEngine.Terminal) {