contiguousTokensEditing.ts ×2
Frontier kind: Code frontier
unlabeled · c_b90e3edda8e2
33 tests · 41504 LOC · 238 files · introduces 0 tests · 4 LOC · 2 files
Introduces — evidence that enters the hierarchy at this concept
Code
3 ranges 4 lines · 2 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
contiguousTokensEditing.ts ×2 — Focused concept
Introduced files:
model.line.test|title=ModelLinesTokens updates tokens on replace 2|occurrence=1 — Ancestor (broader)
Introduced tests:
model.modes.test|title=Editor Model - Model Modes 1 model invalidates states for one line delete|occurrence=1 — Ancestor (broader)
Introduced tests:
model.modes.test|title=Editor Model - Model Modes 1 model invalidates states for one new line|occurrence=1 — Ancestor (broader)
Introduced tests:
model.modes.test|title=Editor Model - Model Modes 2 getTokensForInvalidLines two text insert|occurrence=1 — Ancestor (broader)
Introduced tests:
model.modes.test|title=Editor Model - Model Modes 2 getTokensForInvalidLines one multi-line text insert, one small text insert|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens multi insert 9|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens multi insert 8|occurrence=1, model.line.test|title=ModelLinesTokens split inthe middle 2|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens split inthe middle 1|occurrence=1 — Ancestor (broader)
Introduced tests:
model.modes.test|title=Editor Model - Model Modes 2 getTokensForInvalidLines one text insert|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens single insert 3|occurrence=1, model.line.test|title=ModelLinesTokens updates tokens on insertion 4|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens single insert 4|occurrence=1, model.line.test|title=ModelLinesTokens updates tokens on insertion 5|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens single insert 2|occurrence=1, model.line.test|title=ModelLinesTokens updates tokens on insertion 2|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens updates tokens on replace 1|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens multi insert 7|occurrence=1, model.line.test|title=ModelLinesTokens split at the end|occurrence=1 — Ancestor (broader)
Introduced tests:
contiguousTokensEditing.ts ×1 — Ancestor (broader)
Introduced files:
contiguousTokensStore.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
model.modes.test|title=Editor Model - Model Modes 1 model invalidates states for one line insert|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens multi insert 6|occurrence=1, model.line.test|title=ModelLinesTokens split at the beginning|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens single insert 5|occurrence=1, model.line.test|title=ModelLinesTokens updates tokens on insertion 6|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
fixedArray.ts ×1 — Ancestor (broader)
Introduced files:
model.line.test|title=ModelLinesTokens single insert 1|occurrence=1, model.line.test|title=ModelLinesTokens updates tokens on insertion 1|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
contiguousTokensEditing.ts ×2 — Ancestor (broader)
Introduced files:
model.line.test|title=ModelLinesTokens insertion on empty line|occurrence=1 — Ancestor (broader)
Introduced tests:
model.line.test|title=ModelLinesTokens updates tokens on insertion 10|occurrence=1 — Ancestor (broader)
Introduced tests:
contiguousTokensStore.ts ×3 — Ancestor (broader)
Introduced files:
contiguousTokensEditing.ts ×2 — Ancestor (broader)
Introduced files:
contiguousTokensStore.ts ×1 — Ancestor (broader)
Introduced files:
contiguousTokensEditing.ts ×1 — Ancestor (broader)
Introduced files:
contiguousTokensStore.ts ×1 — Ancestor (broader)
Introduced files:
contiguousTokensStore.ts ×1 — Descendant (narrower)
Introduced files:
textModelTokens.ts ×3 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×1 — Descendant (narrower)
Introduced files:
intervalTree.ts ×7 — Descendant (narrower)
Introduced files:
contiguousTokensStore.ts ×11 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×7 — Descendant (narrower)
Introduced files:
textModel.ts ×9 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×9 — Descendant (narrower)
Introduced files:
textModel.ts ×10 — Descendant (narrower)
Introduced files:
tokenizerSyntaxTokenBackend.ts ×11 — Descendant (narrower)
Introduced files:
textModel.ts ×1 — Descendant (narrower)
Introduced files:
tokenizerSyntaxTokenBackend.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×1 — Descendant (narrower)
Introduced files:
textModelEditSource.ts ×2 — Descendant (narrower)
Introduced files:
tokenizationTextModelPart.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×1 — Descendant (narrower)
Introduced files:
textModel.ts ×10 — Descendant (narrower)
Introduced files:
textModel.ts ×5 — Descendant (narrower)
Introduced files:
bracketPairsImpl.ts ×1 — Descendant (narrower)
Introduced files:
textModel.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×1 — Descendant (narrower)
Introduced files:
textModel.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×5 — Descendant (narrower)
Introduced files:
textModel.ts ×3 — Descendant (narrower)
Introduced files:
textModel.ts ×1 — Descendant (narrower)
Introduced files:
testTextModel.ts ×2 — Descendant (narrower)
Introduced files:
model.ts ×1 — Descendant (narrower)
Introduced files:
testTextModel.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×1 — Descendant (narrower)
Introduced files:
textModel.ts ×1 — Descendant (narrower)
Introduced files:
textModel.ts ×20 — Descendant (narrower)
Introduced files:
tokenizationRegistry.ts ×3 — Descendant (narrower)
Introduced files:
languagesRegistry.ts ×1 — Descendant (narrower)
Introduced files:
tokenizationRegistry.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×9 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×4 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×4 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×6 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×2 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×3 — Descendant (narrower)
Introduced files:
rbTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
rbTreeBase.ts ×3 — Descendant (narrower)
Introduced files:
rbTreeBase.ts ×2 — Descendant (narrower)
Introduced files:
textModel.ts ×2 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
sparseTokensStore.ts ×2 — Descendant (narrower)
Introduced files:
sparseTokensStore.ts ×1 — Descendant (narrower)
Introduced files:
testThemeService.ts ×18 — Descendant (narrower)
Introduced files:
modelService.ts ×30 — Descendant (narrower)
Introduced files:
eolCounter.ts ×3 — Descendant (narrower)
Introduced files:
eolCounter.ts ×3 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×5 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×2 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×2 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
rbTreeBase.ts ×6 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
textModel.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeBase.ts ×1 — Descendant (narrower)
Introduced files:
pieceTreeTextBufferBuilder.ts ×19 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×2 — Descendant (narrower)
Introduced files:
pieceTreeTextBuffer.ts ×4 — Descendant (narrower)
Introduced files:
textModel.ts ×190 — Descendant (narrower)
Introduced files:
derived.ts ×1 — Descendant (narrower)
Introduced files:
tokenizer.ts ×18 — Descendant (narrower)
Introduced files:
testTextResourcePropertiesService.ts ×3 — Descendant (narrower)
Introduced files:
languageService.ts ×24 — Descendant (narrower)
Introduced files:
textResourceConfiguration.ts ×1 — Descendant (narrower)
Introduced files:
testLanguageConfigurationService.ts ×1 — Descendant (narrower)
Introduced files:
languageConfigurationRegistry.ts ×5 — Descendant (narrower)
Introduced files:
testLanguageConfigurationService.ts ×4 — Descendant (narrower)
Introduced files:
languageConfigurationRegistry.ts ×28 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
textModelTokens.ts ×6 — Descendant (narrower)
Introduced files:
textModelTokens.ts ×2 — Descendant (narrower)
Introduced files:
offsetRange.ts ×4 — Descendant (narrower)
Introduced files:
textModelTokens.ts ×44 — Descendant (narrower)
Introduced files:
editStack.ts ×46 — Descendant (narrower)
Introduced files:
lineTokens.ts ×2 — Descendant (narrower)
Introduced files:
textModelEvents.ts ×25 — Descendant (narrower)
Introduced files:
languagesRegistry.ts ×2 — Descendant (narrower)
Introduced files:
log.ts ×72 — Descendant (narrower)
Introduced files:
languagesRegistry.ts ×26 — Descendant (narrower)
Introduced files:
themeService.ts ×3 — Descendant (narrower)
Introduced files:
strings.ts ×1 — Descendant (narrower)
Introduced files:
model.ts ×1 — Descendant (narrower)
Introduced files:
lineTokens.ts ×55 — Descendant (narrower)
Introduced files:
instantiationService.test|title=Instantiation Service SyncDesc - target depends on service future|occurrence=1 — Descendant (narrower)
Introduced tests:
buffer.test|title=Buffer Performance issue with VSBuffer#slice #76076|occurrence=1 — Descendant (narrower)
Introduced tests:
instantiationServiceMock.ts ×18 — Descendant (narrower)
Introduced files:
annotations.ts ×1 — Descendant (narrower)
Introduced files:
annotations.ts ×5 — Descendant (narrower)
Introduced files:
annotations.ts ×1 — Descendant (narrower)
Introduced files:
annotations.ts ×15 — Descendant (narrower)
Introduced files:
languageSelector.ts ×3 — Descendant (narrower)
Introduced files:
glob.ts ×24 — Descendant (narrower)
Introduced files:
offsetRange.ts ×1 — Descendant (narrower)
Introduced files:
stringEdit.ts ×1 — Descendant (narrower)
Introduced files:
utils.ts ×1 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×2 — Descendant (narrower)
Introduced files:
ast.ts ×2 — Descendant (narrower)
Introduced files:
concat23Trees.ts ×6 — Descendant (narrower)
Introduced files:
ast.ts ×2 — Descendant (narrower)
Introduced files:
ast.ts ×1 — Descendant (narrower)
Introduced files:
ast.ts ×1 — Descendant (narrower)
Introduced files:
ast.ts ×76 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×202 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×2 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
observableSignal.ts ×4 — Descendant (narrower)
Introduced files:
derived.ts ×1 — Descendant (narrower)
Introduced files:
debugGetDependencyGraph.ts ×2 — Descendant (narrower)
Introduced files:
observableSignalFromEvent.ts ×1 — Descendant (narrower)
Introduced files:
promise.ts ×1 — Descendant (narrower)
Introduced files:
undoRedoService.ts ×83 — Descendant (narrower)
Introduced files:
beforeEditPositionMapper.ts ×11 — Descendant (narrower)
Introduced files:
languages.ts ×27 — Descendant (narrower)
Introduced files:
length.ts ×22 — Descendant (narrower)
Introduced files:
supports.ts ×10 — Descendant (narrower)
Introduced files:
testConfigurationService.ts ×10 — Descendant (narrower)
Introduced files:
modesRegistry.ts ×3 — Descendant (narrower)
Introduced files:
offsetRange.ts ×1 — Descendant (narrower)
Introduced files:
offsetRange.ts ×1 — Descendant (narrower)
Introduced files:
textModelSearch.ts ×26 — Descendant (narrower)
Introduced files:
testNotificationService.ts ×10 — Descendant (narrower)
Introduced files:
offsetRange.ts ×2 — Descendant (narrower)
Introduced files:
dialogs.ts ×8 — Descendant (narrower)
Introduced files:
mock.ts ×4 — Descendant (narrower)
Introduced files:
undoRedo.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
cursorColumns.ts ×9 — Descendant (narrower)
Introduced files:
strings.ts ×1 — Descendant (narrower)
Introduced files:
strings.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
strings.test|title=Strings trimWhitespace|occurrence=1 — Descendant (narrower)
Introduced tests:
strings.ts ×101 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
lineRange.ts ×1 — Descendant (narrower)
Introduced files:
lineRange.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
lineRange.ts ×40 — Descendant (narrower)
Introduced files:
cancellation.test|title=CancellationToken None|occurrence=1 — Descendant (narrower)
Introduced tests:
lifecycle.test|title=No Leakage Utilities ensureNoDisposablesAreLeakedInTest Basic Test|occurrence=1 — Descendant (narrower)
Introduced tests:
event.ts ×8 — Descendant (narrower)
Introduced files:
event.ts ×3 — Descendant (narrower)
Introduced files:
cancellation.ts ×18 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1, lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1 — Descendant (narrower)
Introduced tests:
event.ts ×2 — Descendant (narrower)
Introduced files:
tokenization.ts ×28 — Descendant (narrower)
Introduced files:
intervalTree.ts ×2 — Descendant (narrower)
Introduced files:
intervalTree.ts ×1 — Descendant (narrower)
Introduced files:
intervalTree.ts ×44 — Descendant (narrower)
Introduced files:
range.ts ×1 — Descendant (narrower)
Introduced files:
range.ts ×3 — Descendant (narrower)
Introduced files:
buffer.ts ×42 — Descendant (narrower)
Introduced files:
position.ts ×1 — Descendant (narrower)
Introduced files:
range.ts ×40 — Descendant (narrower)
Introduced files:
offsetRange.ts ×40 — Descendant (narrower)
Introduced files:
tokenStore.ts ×32 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
smallImmutableSet.ts ×14 — Descendant (narrower)
Introduced files:
numbers.ts ×13 — Descendant (narrower)
Introduced files:
languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication disposes entries no longer in model|occurrence=1 — Descendant (narrower)
Introduced tests:
encodedTokenAttributes.ts ×10 — Descendant (narrower)
Introduced files:
uuid.test|title=UUID generation|occurrence=1 — Descendant (narrower)
Introduced tests:
types.test|title=Types isString|occurrence=1 — Descendant (narrower)
Introduced tests:
types.test|title=Types isUndefined|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.test|title=URI URI#file, win-speciale|occurrence=1, charCode.test|title=CharCode has good values|occurrence=1, +2 — Descendant (narrower)
Introduced tests:
utils.ts ×3 — Descendant (narrower)
Introduced files:
telemetry.ts ×3 — Descendant (narrower)
Introduced files:
nls.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
types.ts ×1 — Descendant (narrower)
Introduced files:
types.ts ×1 — Descendant (narrower)
Introduced files:
lazy.ts ×1 — Descendant (narrower)
Introduced files:
uuid.ts ×3 — Descendant (narrower)
Introduced files:
uint.ts ×2 — Descendant (narrower)
Introduced files:
arrays.ts ×1 — Descendant (narrower)
Introduced files:
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: 4 introduced LOC across 3 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/editor/common/tokens/contiguousTokensEditing.ts 2 introduced LOC · 2 ranges
Open complete file
114
115
public static insert ( lineTokens : Uint32Array | ArrayBuffer | null , chIndex : number , textLength : number ) : Uint32Array | ArrayBuffer | null {
117
// nothing to do
118
return lineTokens ;
133
}
134
return lineTokens ;
136
}
137
src/vs/editor/common/tokens/contiguousTokensStore.ts 2 introduced LOC · 1 range
Open complete file
196
return ;
197
}
199
>
if ( eolCount === 0 ) {
200
// Inserting text on one line
201
this . _lineTokens [ lineIndex ] = ContiguousTokensEditing . insert ( this . _lineTokens [ lineIndex ], position . column - 1 , firstLineLength );