Emit event when calling clearSemanticTokens

上级 6085f3b7
......@@ -1750,7 +1750,11 @@ export class TextModel extends Disposable implements model.ITextModel {
public clearSemanticTokens(): void {
this._tokens2.flush();
console.log(`todo - shoud emit event?`);
// TODO@semantic: could we reduce the event here?
this._emitModelTokensChangedEvent({
tokenizationSupportChanged: false,
ranges: [{ fromLineNumber: 1, toLineNumber: this.getLineCount() }]
});
}
private _emitModelTokensChangedEvent(e: IModelTokensChangedEvent): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册