提交 d2d64fe5 编写于 作者: P Peng Lyu

if the token warmup tokenizes part of the viewport, let it finish.

上级 f336a302
......@@ -1630,6 +1630,10 @@ export class TextModel extends Disposable implements model.ITextModel {
return;
}
if (startLineNumber <= this._tokens.inValidLineStartIndex) {
this.forceTokenization(endLineNumber);
return;
}
const eventBuilder = new ModelTokensChangedEventBuilder();
const viewPortLimit = 120;
const context = Math.floor(Math.max(viewPortLimit - (endLineNumber - startLineNumber), 0) / 2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册