-
Notifications
You must be signed in to change notification settings - Fork 71
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
XML editor: select enclosing element not working #1140
Comments
I think it is a LSP4E feature since XML language servier LemMinX support this feature with textDocument/selectionRange. I created the issue eclipse/lsp4e#561 |
Thanks. Do you think the "regular" XML-Editor (available in "Eclipse for Java developers", offering a context menu "Open with/XML Editor") doesn't use LSP4E? Because there it's working fine ... |
The XML editor comes from WTP plugin and it doesnt use LSP4E. We need to support that in LSP4E. |
See selectionRange on vscode which uses XML language server LemMinX https://github.com/redhat-developer/vscode-xml/blob/main/docs/Features/XMLFeatures.md#selection-range |
Thanks for the clarification. There are other shortcuts, that don't seem work like in other editors, like Ctrl-2+R or Alt-Shift-R for renaming. Yet the link you provided shows the language server seems to provide support for it. |
Alt-Shift-R should work? But as you should have auto rename tag activated by default https://github.com/redhat-developer/vscode-xml/blob/main/docs/Features/XMLFeatures.md#auto-rename-tag you should not need the rename I think. |
thanks, I just checked, and your point is valid: auto rename tag seems to be activated by default (didn't find a way to deactivate ;-)...). It seems to need a bit of a moment to kick in though. And when pressing ESC it's deactivated and I wouldn't know how to activate it again. But no big deal. Alt-Shift-R/Ctrl-R+2 doesn't work though. Actually it would be especially nice for renaming maven properties, but I guess that would be a request to go back to m2e, right? |
Indeed it is not possible. Please create an issue to lsp4e to provide for instance a push button in the toolbar like we have for highlight
I suggest that you create an another issue in lsp4e
I suggest that you create a new issue in lsp4e
Isuggest that you create an issue in lemminx-maven github project which is an extension of the xml language server lemminx for maven |
Closing as fixed - when using |
I first noticed this issue in the m2e-pom-editor and was pointed to post it here (see eclipse-m2e/m2e-core#1315):
The "regular" XML-Editor of Eclipse has the handy feature of "select enclosing element":
<maven.compiler.source>1|.8</maven.compiler.source>
--><maven.compiler.source>[1.8]</maven.compiler.source>
-->[<maven.compiler.source>1.8</maven.compiler.source>]
[<maven.compiler.source>1.8</maven.compiler.source>]
--><maven.compiler.source>[1.8]</maven.compiler.source>
--><maven.compiler.source>1|.8</maven.compiler.source>
This does not work in the m2e-pom editor, which is supposed to use the wildwebdeveloper-xml-editor as a component.
The text was updated successfully, but these errors were encountered: