You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The onDidCloseTextDocument event seems to not fire for minutes after the closing of a preview pane, where as it works perfectly for normal text documents. Last time I tried, I timed it at taking 2 minutes and 30 seconds to fire after closing a preview pane. In my application I am dependent on this to clean up data that was being held for the preview pane.
Is this a bug? or is there a different way to detect when a preview pane specifically is closed to clean up data (a handler specific for content providers maybe)?
That is intentional - for virtual document we run a cleanup every 3 minutes. If we don't find it to be shown in any editor anymore we dispose the model.
So, the event will come but it is a document close event, not a preview pane closed event (which we track in #6941).
The onDidCloseTextDocument event seems to not fire for minutes after the closing of a preview pane, where as it works perfectly for normal text documents. Last time I tried, I timed it at taking 2 minutes and 30 seconds to fire after closing a preview pane. In my application I am dependent on this to clean up data that was being held for the preview pane.
Is this a bug? or is there a different way to detect when a preview pane specifically is closed to clean up data (a handler specific for content providers maybe)?
Repro located at https://github.com/anthonydresser/vscodeRedirectTest
Steps to Reproduce:
Test Redirect
command to open a preview paneThe text was updated successfully, but these errors were encountered: