Skip to content

Add a dialog box when opening unsaved files in a custom editor - #114947

Merged
Logan Ramos (lramos15) merged 2 commits into
microsoft:masterfrom
lramos15:unsavedFileCustomEditor
Feb 2, 2021
Merged

Logan Ramos (lramos15) merged 2 commits into
microsoft:masterfrom
lramos15:unsavedFileCustomEditor

Conversation

@lramos15

Copy link
Copy Markdown
Member

Currently when triggering the reopen with command on files with unsaved channels leads to the custom editor being opened, but the existing tab staying open. This PR prompts the user to save or discard their changes before the custom editor is opened.

image

@lramos15

Copy link
Copy Markdown
Member Author

Matt Bierner (@mjbvz) Ideally, as discussed, we would like to make this work for notebooks. I'm trying to identify the best place to move the code but the open flows seem to diverge around this point https://github.com/microsoft/vscode/blob/master/src/vs/workbench/services/editor/common/editorOpenWith.ts#L111. I was wondering if you had any thoughts on to where the fix would live to cover both places

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hex Editor: original untitled file editor is not closed when opening in the Hex Editor

2 participants