Open segevfiner opened 2 months ago
Because of this bug, our users of Swimm Documentation plugin lose their work sometimes. Can you please prioritise this?
Might be a duplicate of https://github.com/microsoft/vscode/issues/184142, though this issue has more details.
Does this issue occur when all extensions are disabled?: No
Steps to Reproduce:
(This needs to be done with an installed extension rather than in extension development mode as when the extension host is killed in that mode, the process exits)
npm i
package.json
to be anything else.vsce pack
code --install-extension
exampleFiles/example.cscratch
&exampleFiles/example.pawDraw
.Developer: Restart Extension Host
kill -9
using the PID printed in the developer tools or using the VS Code process explorer.There doesn't seem to be an API for an extension or webview to detect and warn the user in such a case, and when this happens, it can often lead to data loss, as when it happens it is silent, and some editors might even continue to function, e.g. pawdraw, but you are unable to save!
Related: https://github.com/microsoft/vscode/issues/180514 (Which isn't exposed to users, and seems to not be used in custom text editor, only on custom editor, also it doesn't handle crashes, only clean restarts) https://github.com/microsoft/vscode/issues/188257 https://github.com/microsoft/vscode/issues/209967