-
Notifications
You must be signed in to change notification settings - Fork 86
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
Keyboard shortcut CTRL
+SHIFT
+T
clash in default binding between Language Server and JDT
#394
Comments
Hi @de-jcup, key-bindings across the installation of various features/plug-ins is a long-standing issue in that different projects dole out key-bindings without there being a central authority to reserve them. As you mentioned, this has been working for 17 years in Java and looking at the code, the key-binding definition in plugin.xml hasn't changed since 2005. As you might understand, there will be Java users who use the CTRL + SHIFT + T outside of the editor and this would be a loss of functionality to restrict this to only edting Java source (e.g. I can open a .properties file and still open a type via the short-cut), especially if the additional plug-ins causing the clash are not installed. I'm not sure there is a solution that works for all parties other than the current one of asking the user what to do or having the user modify the bindings via the Keys preference page to avoid the clash. Have you opened an issue against the language server? |
I did not open currently an issue at the language server project. The problem is... Looking at https://bugs.eclipse.org/bugs/enter_bug.cgi I found the github page for JDT, but no hint about the Language server project. If you can give me the official issue tracker URL for the language server, I would create an issue and link this one. And... my workaround was (as you already mentioned in your comment before) not working well : when you have not opened a java editor it did not work any longer... So I switched the key binding for JDT back to "In Windows" (as shown in next screen). Now it works again as expected and I have at least no multi selection except when being inside a generic text editor... The most problematic part was still that the origin Language server keybinding had to be deleted (I showed this inside a picture) to avoid the clash... My now correct working setup: |
Hi @de-jcup I believe you want to open an issue against lsp4e (assuming you have it installed) as I did find the CTRL+SHIFT+T keybinding to go to symbol in workspace. Their github site can be found at: https://github.com/eclipse/lsp4e |
@jjohnstn : I created an issue at |
I think we can close this now? Note the original issue is eclipse/lsp4e#38 |
Situation
I upgraded my eclipse IDE to:
(I did not have the problem with 2022-09)
Problem: I am using
CTRL
+SHIFT
+T
more than 17 years now to show the "Open type" dialog in eclipse when writing Java code. But now there is a name clash : The language server parts have introduced same short cut for "Go to Symbol in Workspace". Because of this situation there is always a selection inside the window necessary which variant shall be used when pressing the shortcut inside a Java editor - very annoying/slowing down workflow.Details
My current workaround
As a workaround I tried to change the default keybinding. And this was not as trivial as I would have expected.
![image](https://user-images.githubusercontent.com/11644753/212827992-6a6ac7c5-2f52-4274-bfb2-b563ab5df8ae.png)
Finally I managed to change the "Go to Symbol in Workspace" to be used only inside generic code editors and "Open type" to be used in "Editing Java Source" (But I still had to unbind the selected entry in next figure)
The final working setup looks now like this:
![image](https://user-images.githubusercontent.com/11644753/212829677-9dd73e1d-ae72-441f-99da-b05e679ecf32.png)
Wanted
The standard behavior of "Open type" command inside JDT shall work "out of the box" without any clashes with language server.
Suggested Solution
The language server "Go to Symbol in Workspace" shall have per default "when in generic code editor" and the 2Open Type" variant should be changed to "Editing Java Source" also per default.
So there would be two changes necessary: one in in JDT/Java editor command binding and another in language server binding.
The text was updated successfully, but these errors were encountered: