-
Notifications
You must be signed in to change notification settings - Fork 82
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
Auto Rename Tag #130
Comments
@angelozerr @xorye @NikolasKomonen that feature is now available for HTML tags: microsoft/vscode#47069. Would be nice to extend it to XML as well. |
Thanks @fbricon for this great news! It seems we should support
See commit at microsoft/vscode@0d25d0a But pay attention with this feature, it seems that there are some trouble microsoft/vscode#85715 |
@angelozerr The bugs you pointed are already fixed. To implement this feature for XML, you can support |
Thanks for the information!
What do you mean with @fbricon I think we should really implement this very cool feature. |
@angelozerr https://github.com/microsoft/vscode/blob/master/extensions/html-language-features/client/src/mirrorCursor.ts There's nothing in LSP that correspond to adding a cursor. So if you want to implement this, the best you can do is to use VS Code's API like the html language client is currently doing. Please note that |
Under the preference xml.autoSelectMatchingTags Fixes #redhat-developer/vscode-xml#130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectingMatchingTags Fixes redhat-developer#130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectMatchingTags Fixes #redhat-developer/vscode-xml#130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectingMatchingTags Fixes redhat-developer#130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectingMatchingTags Fixes redhat-developer#130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectingMatchingTags Fixes redhat-developer#130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectingMatchingTags Fixes redhat-developer#130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectingMatchingTags Fixes redhat-developer#130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectingMatchingTags Fixes redhat-developer#130 Signed-off-by: Nikolas Komonen <[email protected]>
@octref you mean that this request type could belong to the LSP specification ? |
I was saying the opposite: it’s NOT lsp, just a custom request now. If enough people want it we can propose to add it, but it should look very different than the current implementation. |
Yes sure I understood that, but I love this feature and I hope really this request type will be a LSP specification. In this case we could have this feature in any LSP client (my wish is to have this support inside Eclipse IDE with LSP4E /cc @mickaelistria) |
the Language Server already has ability to send TextEdit to the client to apply on client-side. So this can be an option, when turned on, that sending a text change inside a tag sends an applyEdit notification for the other tag in the client. |
Under the preference xml.autoSelectingMatchingTags Fixes #130 Signed-off-by: Nikolas Komonen <[email protected]>
Under the preference xml.autoSelectMatchingTags Fixes #redhat-developer/vscode-xml#130 Signed-off-by: Nikolas Komonen <[email protected]>
Feature doesn't work (see #211 ) |
I can't repro the problem in HTML though. Are you doing anything XML specific? |
One feature that was specific to vscode-xml was that we added the ability to toggle the A new listener was added to detect changes to I'm guessing that we had problems because we didn't have
in our |
There is also some discussion going on here: VSCode: Improve mirror cursor implementation with Synced Regions #88424 |
Thanks @bmix for this great information! |
@xorye we should manage synced region in LemMinx side and consume it. See HTML Language server commit microsoft/vscode@01e01b1 but I suggest you see for each files the master code (if there are some fixes) |
Fixed with LSP Lineked Editing, see https://github.com/redhat-developer/vscode-xml/blob/master/docs/Features/XMLFeatures.md#linked-editing |
I just realized, with the help of @angelozerr at lsp4xml/#362, that synced renaming and deletion of two tags, that belong together, may best be done via some simple text manipulation on the client side. I now have installed a little extension into VSCode, that does just that (minus paired delete, sadly), but it may well fit also into your project, so to keep things together.
The text was updated successfully, but these errors were encountered: