Repository navigation
adopt working copy editor handler and remove custom editor input factory - #123308
Conversation
| */ | ||
| class WorkbenchConfigurationContribution { | ||
| constructor( | ||
| @ICustomEditorService _customEditorService: ICustomEditorService, |
There was a problem hiding this comment.
Logan Ramos (@lramos15) fyi I moved this "hack" into the new ComplexCustomWorkingCopyEditorHandler
|
Matt Bierner (@mjbvz) the more I think about it the more I feel this check is not working (probably even before): The idea is that when |
This comment has been minimized.
This comment has been minimized.
|
Benjamin Pasero (@bpasero) Thanks for looking into this! I confirmed that the I just pushed a fix for |
|
Thanks! |
This PR fixes #117208
This puts an end to custom editor input factories and leverages the new
IWorkingCopyEditorHandlerinfrastructure that has already been adopted for notebooks and search editors.It is similar in some regard, so most of the code is pretty much the same. I am still not super happy that the backup needs to be resolved first before being able to create the editor input because I think that should happen rather from the
resolvemethod and e.g. notebooks can resolve sync as well (and have extensions behind them).Anyway, one issue I see with this change that I need help with:
=> 🐛
Unable to open 'Screenshot 2021-05-07 at 17.16.50.png': Webview already registered.Demo:

I think the second time the editor restores it works nicely because at that point the UI state did not have the previous editor in hand anymore so it was freshly opened. On the upside, this proofs that the new backup mechanism keeps backups around until they can be restored successfully 👍