Open a-stewart opened 2 months ago
This makes good sense to me, thanks for the suggestion!
This needs to be implemented per working copy owner I would think, i.e. the storedFileWorkingCopy
delegates to a handler that implements this flow. I don't think this can be implemented in a generic way because it needs to open working copy specific editors.
Happy to review a PR in this area 👍
If you have a file conflict on save, with a regular file you get the message:
https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.ts#L127
Whereas with a Notebook you get the similar message, but without the option to view the diff:
https://github.com/microsoft/vscode/blob/main/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.ts#L1143
Given that Notebooks do support side by side diffs, should this prompt now be updated to show the same message for Notebooks as it does for text files and offer resolution via a diff editor?