Missing API for knowing when an extension's decorations get trashed #50415
Labels
api
feature-request
Request for new features or functionality
*out-of-scope
Posted issue is not in scope of VS Code
Todo+ makes heavy use of dynamic decorations.
It decorates the active document, if it's supported, on
onDidChangeActiveTextEditor
. As a performance optimization I wanted to skip the decoration logic if the document has already been decorated and its content didn't change.I think this is impossible to implement because there's no way of knowing if the decorations your extension applied have been trashed or not, sometimes they do get trashed, sometimes they don't.
Fixing #50346 would also fix this issue, but they are not the exactly the same thing
The text was updated successfully, but these errors were encountered: