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
What should happen when on a read-only filesystem? #148304
Comments
We have no real way to figure out if the |
From |
Oh, had to revert, not easy to fix: as part of the action flow, the action may decide to open another editor (that actually happens as part of the create file flow). If we await that action, we fail to open that editor because we still think we are in an error case. So I am actually proceeding in the background to open the place holder without waiting for the action to finish and thus I cannot detect whether the action results in an error or not. As such, I simply always consider the action to have succeeded in a way that I do not need to show the place holder: vscode/src/vs/workbench/browser/parts/editor/editorPanes.ts Lines 189 to 194 in 0290856
tl;dr;: if you press any button in the dialog other than "Cancel", no place holder shows because I assume you have dealt with the error, even if that fails. |
Testing #147706
using an untitled html file:
I think this makes sense because it's trying to save to the root of the file system at
/doesnotexist.txt
but I wanted to open this anyway just in case because it throws that error and then closes the editor in the background which is maybe not as consistent of this new "error when not exist" flow.The text was updated successfully, but these errors were encountered: