mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
dispose defaults change listener
This commit is contained in:
parent
b030b3ab81
commit
6b854819a3
1 changed files with 3 additions and 3 deletions
|
|
@ -67,14 +67,14 @@ export class DiagnosticsAdapter {
|
|||
this._resetSchema(event.model.uri);
|
||||
}));
|
||||
|
||||
defaults.onDidChange(_ => {
|
||||
this._disposables.push(defaults.onDidChange(_ => {
|
||||
monaco.editor.getModels().forEach(model => {
|
||||
if (model.getModeId() === this._languageId) {
|
||||
onModelRemoved(model);
|
||||
onModelAdd(model);;
|
||||
onModelAdd(model);
|
||||
}
|
||||
});
|
||||
});
|
||||
}));
|
||||
|
||||
this._disposables.push({
|
||||
dispose: () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue