Skip to content

Commit e3018c3

Browse files
authored
1 parent dbac899 commit e3018c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/editor/common/model/tokenizationTextModelPart.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ class GrammarTokens extends Disposable {
472472
if (tokenizationSupport?.backgroundTokenizerShouldOnlyVerifyTokens && tokenizationSupport.createBackgroundTokenizer) {
473473
this._debugBackgroundTokens = new ContiguousTokensStore(this._languageIdCodec);
474474
this._debugBackgroundStates = new TrackingTokenizationStateStore(this._textModel.getLineCount());
475+
this._debugBackgroundTokenizer.clear();
475476
this._debugBackgroundTokenizer.value = tokenizationSupport.createBackgroundTokenizer(this._textModel, {
476477
setTokens: (tokens) => {
477478
this._debugBackgroundTokens?.setMultilineTokens(tokens, this._textModel);

0 commit comments

Comments
 (0)