taskConfiguration.ts ×6

Frontier kind: Code frontier

unlabeled · c_5fd2d23b31f5

55 tests · 20857 LOC · 80 files · introduces 0 tests · 22 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges22 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2321 ranges20857 lines · 80 files · Browse complete extent
All tests (intent)
55 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.

2 files ranked by introduced lines: 22 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/tasks/common/taskConfiguration.ts 14 introduced LOC · 6 ranges

Open complete file

595
596 // eslint-disable-next-line @typescript-eslint/no-explicit-any -- IMetaData array holds heterogeneous parser types
597 > function _isEmpty<T>(this: void, value: T | undefined, properties: IMetaData<T, any>[] | undefined, allowEmptyArray: boolean = false): boolean { taskConfiguration.ts
598 > if (value === undefined || value === null || properties === undefined) {
599 return true;
600 }
601 > for (const meta of properties) { taskConfiguration.ts
602 > const property = value[meta.property];
603 > if (property !== undefined && property !== null) {
604 > if (meta.type !== undefined && !meta.type.isEmpty(property)) {
605 return false;
606 > } else if (!Array.isArray(property) || (property.length > 0) || allowEmptyArray) { taskConfiguration.ts
607 > return false;
608 > }
609 > }
610 > }
611 return true;
612 }
1296 export namespace GroupKind {
1297 export function from(this: void, external: string | IGroupKind | undefined): Tasks.TaskGroup | undefined {
1298 > if (external === undefined) { taskConfiguration.ts
1299 return undefined;
1300 > } else if (Types.isString(external) && Tasks.TaskGroup.is(external)) { taskConfiguration.ts
1301 return { _id: external, isDefault: false };
1302 } else if (Types.isString(external.kind) && Tasks.TaskGroup.is(external.kind)) {
1307 }
1308 return undefined;
1310
1311 export function to(group: Tasks.TaskGroup | string): IGroupKind | string {
src/vs/workbench/contrib/tasks/common/tasks.ts 8 introduced LOC · 3 ranges

Open complete file

633
634 protected constructor(id: string, label: string | undefined, type: string | undefined, runOptions: IRunOptions,
635 > configurationProperties: IConfigurationProperties, source: IBaseTaskSource) { tasks.ts
636 > this._id = id;
637 > if (label) {
638 this._label = label;
639 }
640 > if (type) { tasks.ts
641 this.type = type;
642 }
643 > this.runOptions = runOptions; tasks.ts
644 > this.configurationProperties = configurationProperties;
645 > this._source = source;
646 > }
647
648 public getDefinition(useSource?: boolean): KeyedTaskIdentifier | undefined {