Skip to content

Commit 56aee64

Browse files
authored
1 parent 41ef820 commit 56aee64

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vs/workbench/api/common/extHostLanguages.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,17 @@ export class ExtHostLanguages implements ExtHostLanguagesShape {
101101
busy: false
102102
};
103103

104+
104105
let soonHandle: IDisposable | undefined;
105106
const commandDisposables = new DisposableStore();
106107
const updateAsync = () => {
107108
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+
108115
soonHandle = disposableTimeout(() => {
109116
commandDisposables.clear();
110117
this._proxy.$setLanguageStatus(handle, {

0 commit comments

Comments
 (0)