textModel.ts ×2

Frontier kind: Joint frontier

unlabeled · c_0058ee8ee259

2 tests · 42804 LOC · 238 files · introduces 1 test · 16 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges16 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5556 ranges42804 lines · 238 files · Browse complete extent
All tests (intent)
2 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

src/vs/editor/common/services/modelService.ts 12 introduced LOC · 2 ranges

Open complete file

324 );
325 if (sha1IsEqual || disposedModelData.sharesUndoRedoStack) {
326 > for (const element of elements.past) { modelService.ts
327 > if (isEditStackElement(element) && element.matchesResource(resource)) {
328 > element.setModel(model);
329 > }
330 > }
331 > for (const element of elements.future) {
332 if (isEditStackElement(element) && element.matchesResource(resource)) {
333 element.setModel(model);
334 }
335 }
336 > this._undoRedoService.setElementsValidFlag(resource, true, (element) => (isEditStackElement(element) && element.matchesResource(resource))); modelService.ts
337 > if (sha1IsEqual) {
338 > model._overwriteVersionId(disposedModelData.versionId);
339 > model._overwriteAlternativeVersionId(disposedModelData.alternativeVersionId);
340 > model._overwriteInitialUndoRedoSnapshot(disposedModelData.initialUndoRedoSnapshot);
341 > }
342 } else {
343 if (disposedModelData.initialUndoRedoSnapshot !== null) {
src/vs/editor/common/model/textModel.ts 4 introduced LOC · 2 ranges

Open complete file

786
787 public _overwriteVersionId(versionId: number): void {
788 > this._versionId = versionId; textModel.ts
789 > }
790
791 public _overwriteAlternativeVersionId(newAlternativeVersionId: number): void {
794
795 public _overwriteInitialUndoRedoSnapshot(newInitialUndoRedoSnapshot: ResourceEditStackSnapshot | null): void {
796 > this._initialUndoRedoSnapshot = newInitialUndoRedoSnapshot; textModel.ts
797 > }
798
799 public getValue(eol?: model.EndOfLinePreference, preserveBOM: boolean = false): string {