-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Saving untitled notebooks #98992
Comments
Good catch, untitled file should not trigger save until users explicitly run Save, which will invoke SaveAs. |
We should also improve the overall experience for creating untitled notebook documents, they can be created in two approaches:
cc @mjbvz we may also want to adopt this in Custom Editor world. |
We now support opening a untitled file with specified editor view type through the existing new untitled file command (in master, and tomorrow's Insiders)
When the command is executed, |
Steps to Reproduce:
1.Create a new untitled notebook (using VS Code Python extension)
2.When you add a cell or the like, then VSC will invoke the save method on the
NotebookContentProvider
Problems
saveNotebook
method are ignored. VSC will assume the notebook was saved and mark it as not dirty (the dirty indicator doesn't exist on the tab anymore)I don't think VSCode should call the
saveNotebook
method for untitled notebooks.FYI - We create untitled notebooks with a scehme
untitled
.If this isn't the way to indicate an untitled file (scheme), we might need some API or the like in the notebooks implememtation.
@rebornix /cc
The text was updated successfully, but these errors were encountered: