We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbac899 commit e3018c3Copy full SHA for e3018c3
src/vs/editor/common/model/tokenizationTextModelPart.ts
@@ -472,6 +472,7 @@ class GrammarTokens extends Disposable {
472
if (tokenizationSupport?.backgroundTokenizerShouldOnlyVerifyTokens && tokenizationSupport.createBackgroundTokenizer) {
473
this._debugBackgroundTokens = new ContiguousTokensStore(this._languageIdCodec);
474
this._debugBackgroundStates = new TrackingTokenizationStateStore(this._textModel.getLineCount());
475
+ this._debugBackgroundTokenizer.clear();
476
this._debugBackgroundTokenizer.value = tokenizationSupport.createBackgroundTokenizer(this._textModel, {
477
setTokens: (tokens) => {
478
this._debugBackgroundTokens?.setMultilineTokens(tokens, this._textModel);
0 commit comments