-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsaved notebook fails to render when a folder is added to the workspace #173219
Comments
The underlying reason is very likely the fact that we restart the extension host which is tough for any editor that requires the EH to work (for example custom editors). Here the stack trace is:
I suspect some disposal code running from notebooks clearing out the model. |
I guess
|
@roblourens because all notebooks get disposed: vscode/src/vs/workbench/api/browser/mainThreadNotebook.ts Lines 41 to 44 in 43db9d2
Which triggers closing: vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts Lines 562 to 568 in 43db9d2
We cannot cancel restart of the EH today through any user interaction and to be fair, restarting the EH is somewhat silly still and just to support deprecated API for the root path... |
Yeah, I just would have to read more to follow how this is different than closing vscode where hot exit works. But true, we still have the huge thread at #69335 and I think that getting rid of restarting the EH is the right fix for this situation. |
Does this issue occur when all extensions are disabled?: Yes/No
Version: 1.75.0-insider (user setup)
Commit: e2816fe
Date: 2023-02-01T15:16:18.248Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes
Steps to Reproduce:
ipynb
file but don't saveipynb
file doesn't render in notebook view (I could open it asjson
if I click "Open in Text Editor" though)The text was updated successfully, but these errors were encountered: