mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 10:27:46 +00:00
Also use the first line which has a begin state when tokenizing the viewport (#155698)
This commit is contained in:
parent
abf921bd9c
commit
c79556aed3
|
@ -472,12 +472,12 @@ export class TextModelTokenization extends Disposable {
|
|||
}
|
||||
|
||||
if (newNonWhitespaceIndex < nonWhitespaceColumn) {
|
||||
fakeLines.push(this._textModel.getLineContent(i));
|
||||
nonWhitespaceColumn = newNonWhitespaceIndex;
|
||||
initialState = this._tokenizationStateStore.getBeginState(i - 1);
|
||||
if (initialState) {
|
||||
break;
|
||||
}
|
||||
fakeLines.push(this._textModel.getLineContent(i));
|
||||
nonWhitespaceColumn = newNonWhitespaceIndex;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue