mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-05-24 12:21:53 +00:00
Remove markers on model dipsose (Microsoft/monaco-editor#111)
This commit is contained in:
parent
67fedfef19
commit
dbfa9a3980
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ export class DiagnostcsAdapter {
|
|||
};
|
||||
|
||||
const onModelRemoved = (model: monaco.editor.IModel): void => {
|
||||
monaco.editor.setModelMarkers(model, this._languageId, []);
|
||||
delete this._listener[model.uri.toString()];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue