public getFirstInvalidLine(): { lineNumber: number; startState: TState } | null {
}
}
Frontier kind: Code frontier
unlabeled · c_bfa43e6d14bf
22 tests · 40882 LOC · 238 files · introduces 0 tests · 79 LOC · 3 files
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.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/codeEditor/test/node/autoindent.test|title=Auto-Reindentation - TypeScript/JavaScript Issue #141816|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/codeEditor/test/node/autoindent.test|title=Auto-Reindentation - TypeScript/JavaScript Issue #25437|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/instantiation/test/common/instantiationService.test|title=Instantiation Service @Param - fixed args|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/instantiation/test/common/instantiationService.test|title=Instantiation Service @Param - simple clase|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/core/range.test|title=Editor Core - Range empty range|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/core/range.test|title=Editor Core - Range no swap same line|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/core/range.test|title=Editor Core - Range no swap|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication creates new entry when none exists|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate IDs with existing entry - fixed version reuses existing|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate status IDs - buggy version leaks entry|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate status IDs - fixed version reuses entry from current update|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication mixed unique and duplicate IDs|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication reuses existing entry from previous update|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
3 files ranked by introduced lines: 79 introduced LOC across 28 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
public getFirstInvalidLine(): { lineNumber: number; startState: TState } | null {
}
}
public updateTokensUntilLine(builder: ContiguousMultilineTokensBuilder, lineNumber: number): void {
while (true) {
const lineToTokenize = this.getFirstInvalidLine();
if (!lineToTokenize || lineToTokenize.lineNumber > lineNumber) {
break;
}
const text = this._textModel.getLineContent(lineToTokenize.lineNumber);
const r = safeTokenize(this._languageIdCodec, languageId, this.tokenizationSupport, text, true, lineToTokenize.startState);
builder.add(lineToTokenize.lineNumber, r.tokens);
this.store.setEndState(lineToTokenize.lineNumber, r.endState as TState);
}
}
/** assumes state is up to date */
*/
public setEndState(lineNumber: number, state: TState): boolean {
throw new BugIndicatingError('Cannot set null/undefined state');
}
this._invalidEndStatesLineNumbers.delete(lineNumber);
const r = this._tokenizationStateStore.setEndState(lineNumber, state);
if (r && lineNumber < this.lineCount) {
// because the state changed, we cannot trust the next state anymore and have to invalidate it.
this._invalidEndStatesLineNumbers.addRange(new OffsetRange(lineNumber + 1, lineNumber + 2));
}
return r;
}
public acceptChange(range: LineRange, newLineCount: number): void {
public getStartState(lineNumber: number, initialState: TState): TState | null {
return this.getEndState(lineNumber - 1);
public getFirstInvalidLine(initialState: TState): { lineNumber: number; startState: TState } | null {
if (lineNumber === null) {
return null;
}
if (!startState) {
throw new BugIndicatingError('Start state must be defined');
}
return { lineNumber, startState };
}
}
public setEndState(lineNumber: number, state: TState): boolean {
if (oldState && oldState.equals(state)) {
return false;
}
this._lineEndStates.set(lineNumber, state);
return true;
}
public acceptChange(range: LineRange, newLineCount: number): void {
public get min(): number | null {
return null;
}
}
public removeMin(): number | null {
public delete(value: number): void {
if (idx !== -1) {
const range = this._ranges[idx];
if (range.start === value) {
if (range.endExclusive === value + 1) {
this._ranges.splice(idx, 1);
this._ranges[idx] = new OffsetRange(value + 1, range.endExclusive);
}
if (range.endExclusive === value + 1) {
this._ranges[idx] = new OffsetRange(range.start, value);
function safeTokenize(languageIdCodec: ILanguageIdCodec, languageId: string, tokenizationSupport: ITokenizationSupport | null, text: string, hasEOL: boolean, state: IState): EncodedTokenizationResult {
textModelTokens.ts
let r: EncodedTokenizationResult | null = null;
if (tokenizationSupport) {
try {
r = tokenizationSupport.tokenizeEncoded(text, hasEOL, state.clone());
} catch (e) {
onUnexpectedError(e);
}
if (!r) {
r = nullTokenizeEncoded(languageIdCodec.encodeLanguageId(languageId), state);
}
LineTokens.convertToEndOffset(r.tokens, text.length);
return r;
}
export class DefaultBackgroundTokenizer implements IBackgroundTokenizer {
public checkFinished(): void {
return;
}
this._backgroundTokenStore.backgroundTokenizationFinished();
}
public requestTokens(startLineNumber: number, endLineNumberExclusive: number): void {
public get(index: number): T {
return this._store[index];
}
}
public set(index: number, value: T): void {
this._store[this._store.length] = this._default;
}
this._store[index] = value;
}
public replace(index: number, oldLength: number, newLength: number): void {
public contains(offset: number): boolean {
}
/**