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 41ef820 commit 56aee64Copy full SHA for 56aee64
src/vs/workbench/api/common/extHostLanguages.ts
@@ -101,10 +101,17 @@ export class ExtHostLanguages implements ExtHostLanguagesShape {
101
busy: false
102
};
103
104
+
105
let soonHandle: IDisposable | undefined;
106
const commandDisposables = new DisposableStore();
107
const updateAsync = () => {
108
soonHandle?.dispose();
109
110
+ if (!ids.has(fullyQualifiedId)) {
111
+ console.warn(`LanguageStatusItem (${id}) from ${extension.identifier.value} has been disposed and CANNOT be updated anymore`);
112
+ return; // disposed in the meantime
113
+ }
114
115
soonHandle = disposableTimeout(() => {
116
commandDisposables.clear();
117
this._proxy.$setLanguageStatus(handle, {
0 commit comments