mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Remove markers on model dipsose (Microsoft/monaco-editor#111)
This commit is contained in:
parent
b0adbfc134
commit
01cf2aeea8
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…
Add table
Add a link
Reference in a new issue