-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Have a good way to redirect open request into the merge editor #153110
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
Comments
Yeah to clarify what we do: there is a I am not sure if we should use the editor resolver API for this or rather extend the code editor service to make it aware of text editors that have multiple sides where one is the "main" side. I think I lean towards the latter. |
…orks (knows the editor/model to operate on). This opens a can of worms as other things start to work, e.g outline and breakcrumbs and that requires some "redirect magic" to ensure opening a symbol from outline/breakcrumbs stays within the merge editor... fyi @bpasero @lramos15 I dynamically register/unregister an editor with the editor resolver service which I think is pretty bad but the only "contained/local" way I could find
I like that. Started the work in |
Same problem already exists with the normal diff editor and references view. @bpasero what do you think? Do have a nice way to tackle this? Are we cool with having the same bug with the merge editor? I guess yes Screen.Recording.2022-07-07.at.12.00.21.mov |
Yeah I like your approach and think behaving same as diff editor is OK, in fact I have never suffered from this issue in my day to day use and also did not get users complaining about this so far, so I also think it is OK to 🚢 |
continues 15a420f and 15a420f#commitcomment-76896537
The merge editor integrates with the outside world via
getControl
. This make outline, breadcrumbs, breakpoint revealing/hitting (?) etc work. A hack was added to make sure open requests are redirected into the merge editor, e.g clicking on an outline entry should not open a separate editor, likewise go-to-def etc... I know that the workbench has built-in knowledge of the diff-editor for similar cases but the merge editor is a contribution and needs a more offical way of doing this...The text was updated successfully, but these errors were encountered: