-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Allow scrapbook untitled working copies #174485
Comments
@amunger I am trying to understand the requirements for such a change and maybe notebook team could help out. I see that backups are really tied to dirty state tracking, meaning that if a working copy does not report it is dirty, we do not create any backups. My hope would be to do a minimal change that does not disrupt how we manage backups... So I am wondering if we can keep the dirty state of the working copy as it is today so that backups work, but see for certain UI locations where we show a dirty indicator today to hide it based on a new However, I miss a little bit the greater picture here for where else scrapbook working copies would have to alter its behaviour. For my testing, I am running the command "New GitHub Issue Notebook" which normally opens an editor dirty, but with a few tweaks shows like a scrapbook. Contents restore after window reload too: Dirty State in Editor
Dirty State for Working Copies
☝️ above are just hacks for now, but once we found all locations we can productise this further by checking for the working copy capability |
IFileWorkingCopy
Ping |
Sorry - I read through your comment too fast the first time and missed the ask. Playing around with those two hacks seems to provide the behavior we're looking for except for the case of exiting with hotexit= |
could probably verify with #183310 |
I will not push those changes for May though, there are still some UX concerns. |
I figured that was the case, but still probably the best way to verify - checking that out and running locally. Or you could mark verified if you're comfortable with that. |
I think we can move this to June and have it verified then, either with notebooks or my work 👍 |
required for #172974
We would like a
IFileWorkingCopy
implementation that is related toUntitledFileWorkingCopy
as in, there is no file on disk backing the model so it wouldn't auto-save and would be recovered from a hot exit, but can more easily be discarded without prompting to save.onExitAndWindowClose
hot exit enabled, the user would not be prompted to saveThe text was updated successfully, but these errors were encountered: