Skip to content

Commit

Permalink
fix leaking listener
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed May 29, 2024
1 parent 1c69390 commit bb62a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/api/browser/mainThreadLanguageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class MainThreadLanguageFeatures extends Disposable implements MainThread
}
this._proxy.$setWordDefinitions(wordDefinitionDtos);
};
this._languageConfigurationService.onDidChange((e) => {
this._register(this._languageConfigurationService.onDidChange((e) => {
if (!e.languageId) {
updateAllWordDefinitions();
} else {
Expand All @@ -78,7 +78,7 @@ export class MainThreadLanguageFeatures extends Disposable implements MainThread
regexFlags: wordDefinition.flags
}]);
}
});
}));
updateAllWordDefinitions();
}
}
Expand Down

0 comments on commit bb62a23

Please sign in to comment.