lineHeights.ts ×8

Frontier kind: Code frontier

unlabeled · c_f19d1d9acb58

37 tests · 12714 LOC · 38 files · introduces 0 tests · 19 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges19 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1221 ranges12714 lines · 38 files · Browse complete extent
All tests (intent)
37 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: 19 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/editor/common/viewLayout/lineHeights.ts 19 introduced LOC · 8 ranges

Open complete file

142 return;
143 }
144 > const changes = this._pendingChanges; lineHeights.ts
145 > this._pendingChanges = [];
146 > this._hasPending = false;
147 >
148 > const stagedInserts: CustomLine[] = [];
149 > const stagedIdMap = new ArrayMap<string, CustomLine>();
150 > for (const change of changes) {
151 > switch (change.kind) {
152 > case PendingChangeKind.Remove:
153 this._doRemoveCustomLineHeight(change.decorationId, stagedIdMap);
154 break;
155 > case PendingChangeKind.InsertOrChange: lineHeights.ts
156 this._doInsertOrChangeCustomLineHeight(change.decorationId, change.startLineNumber, change.endLineNumber, change.lineHeight, stagedInserts, stagedIdMap);
157 break;
158 > case PendingChangeKind.LinesDeleted: lineHeights.ts
159 this._flushStagedDecorationChanges(stagedInserts, stagedIdMap);
160 this._doLinesDeleted(change.fromLineNumber, change.toLineNumber);
161 break;
162 > case PendingChangeKind.LinesInserted: lineHeights.ts
163 this._flushStagedDecorationChanges(stagedInserts, stagedIdMap);
164 this._doLinesInserted(change.fromLineNumber, change.toLineNumber, stagedInserts, stagedIdMap);
165 break;
166 > } lineHeights.ts
167 > }
168 > this._flushStagedDecorationChanges(stagedInserts, stagedIdMap);
169 }
170
197
198 private _flushStagedDecorationChanges(stagedInserts: CustomLine[], stagedIdMap: ArrayMap<string, CustomLine>): void {
199 > if (stagedInserts.length === 0 && this._invalidIndex === Infinity) { lineHeights.ts
200 return;
201 }
224
225 let numberOfDeletions = 0;
226 > let previousSpecialLine: CustomLine | undefined = (this._invalidIndex > 0) ? newOrderedSpecialLines[this._invalidIndex - 1] : undefined; lineHeights.ts
227 > for (let i = this._invalidIndex; i < this._orderedCustomLines.length; i++) {
228 const customLine = this._orderedCustomLines[i];
229 if (customLine.deleted) {
264 this._decorationIDToCustomLine = newDecorationIDToSpecialLine;
265 this._invalidIndex = Infinity;
266 > } lineHeights.ts
267
268 private _doLinesDeleted(fromLineNumber: number, toLineNumber: number): void {