mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Fixes #2153: Add a dispose() method to the code lens provider
This commit is contained in:
parent
8b9e18c804
commit
08c64ab616
2 changed files with 4 additions and 2 deletions
|
|
@ -63,7 +63,8 @@ monaco.languages.registerCodeLensProvider('json', {
|
|||
title: "First Line"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
dispose: () => {}
|
||||
};
|
||||
},
|
||||
resolveCodeLens: function (model, codeLens, token) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@ monaco.languages.registerCodeLensProvider('json', {
|
|||
title: "First Line"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
dispose: () => {}
|
||||
};
|
||||
},
|
||||
resolveCodeLens: function (model, codeLens, token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue