viewLineRenderer.ts ×9

Frontier kind: Code frontier

unlabeled · c_ad907dda881b

67 tests · 8992 LOC · 43 files · introduces 0 tests · 39 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges39 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1114 ranges8992 lines · 43 files · Browse complete extent
All tests (intent)
67 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: 39 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/editor/common/viewLayout/viewLineRenderer.ts 39 introduced LOC · 9 ranges

Open complete file

1086
1087 } else {
1089 > sb.appendASCIICharCode(CharCode.GreaterThan);
1090 >
1091 > for (; charIndex < partEndIndex; charIndex++) {
1092 > characterMapping.setColumnInfo(charIndex + 1, partIndex - partDisplacement, charOffsetInPart, charHorizontalOffset);
1093 > partDisplacement = 0;
1094 > const charCode = lineContent.charCodeAt(charIndex);
1095 >
1096 > let producedCharacters = 1;
1097 > let charWidth = 1;
1098 >
1099 > switch (charCode) {
1100 > case CharCode.Tab:
1101 producedCharacters = (tabSize - (visibleColumn % tabSize));
1102 charWidth = producedCharacters;
1105 }
1106 break;
1108 > case CharCode.Space:
1109 sb.appendCharCode(0xA0); // &nbsp;
1110 break;
1112 > case CharCode.LessThan:
1113 sb.appendString('&lt;');
1114 break;
1116 > case CharCode.GreaterThan:
1117 sb.appendString('&gt;');
1118 break;
1120 > case CharCode.Ampersand:
1121 sb.appendString('&amp;');
1122 break;
1124 > case CharCode.Null:
1125 if (renderControlCharacters) {
1126 // See https://unicode-table.com/en/blocks/control-pictures/
1130 }
1131 break;
1133 > case CharCode.UTF8_BOM:
1134 > case CharCode.LINE_SEPARATOR:
1135 > case CharCode.PARAGRAPH_SEPARATOR:
1136 > case CharCode.NEXT_LINE:
1137 sb.appendCharCode(0xFFFD);
1138 break;
1140 > default:
1141 if (strings.isFullWidthCharacter(charCode)) {
1142 charWidth++;
1157 sb.appendCharCode(charCode);
1158 }
1160 >
1161 > charOffsetInPart += producedCharacters;
1162 > charHorizontalOffset += charWidth;
1163 > if (charIndex >= fauxIndentLength) {
1164 > visibleColumn += charWidth;
1165 > }
1166 > }
1167 > }
1168
1169 if (partIsEmptyAndHasPseudoAfter) {