Skip to content

Commit

Permalink
Yield every 1 ms from tokenization (fixes #40681)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Oct 10, 2019
1 parent dd9fe15 commit 9f0d6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/common/model/textModelTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export class TextModelTokenization extends Disposable {
}

private _revalidateTokensNow(toLineNumber: number = this._textModel.getLineCount()): void {
const MAX_ALLOWED_TIME = 20;
const MAX_ALLOWED_TIME = 1;
const builder = new MultilineTokensBuilder();
const sw = StopWatch.create(false);

Expand Down

0 comments on commit 9f0d6a6

Please sign in to comment.