提交 4a448c24 编写于 作者: J Johannes Rieken

fix #32877

上级 c1d9d3f9
......@@ -111,13 +111,13 @@ export class CodeLensContribution implements editorCommon.IEditorContribution {
}, 500);
const scheduler = new RunOnceScheduler(() => {
const counterValue = ++this._modelChangeCounter;
if (this._currentFindCodeLensSymbolsPromise) {
this._currentFindCodeLensSymbolsPromise.cancel();
}
this._currentFindCodeLensSymbolsPromise = getCodeLensData(model);
const counterValue = ++this._modelChangeCounter;
this._currentFindCodeLensSymbolsPromise.then((result) => {
if (counterValue === this._modelChangeCounter) { // only the last one wins
this._renderCodeLensSymbols(result);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册