-
Notifications
You must be signed in to change notification settings - Fork 92
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
Completion when changing a tag inserts wrong closing tag #122
Comments
@felixfbecker I don't understand how you do that with vscode: you select a tag name and you type some content and it updates the end tag too? Could you explain me please? Please note that you have a rename feature which supports that. |
Perhaps its' an extension that you have installed? |
Oh, that's a different extension: https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag It should not affect the bug because the autocompletion is provided by vscode-xml. I use that extension because in JSX, when you rename an element, it will rename the referenced component (everywhere), not change which component is referenced. The equivalent in vscode-xml would be if it changed the |
lsp4xml gives the capability ro rename the start/end tag element (not the whole document). I will try to install your extension and play with it. I don't know if it's an hard task to do. |
I understand your problem and it should be cool to fix it, but I think it's an hard task because in your case you need to detect that Today the tolerant XML parser ignore the end element which have no opened element (it's the same logic than the HTML Language Server of vscode). I keep opened this issue, but I don't know when (and if) it will be fixed. Changing the XML parser (which is a translate of HTML Language Server of vscode) scares me. Any contribution are welcome! |
Awesome. If rename works, there are definitely more important priorities like #117, redhat-developer/vscode-xml#17 |
Glad it pleases you:) The only think with rename is that you have not completion.
I have an idea how to do fix it, just find time to do it:) |
@felixfbecker I'm not sure, but perhaps the future settings |
Yeah, I think I would prefer tags to not be autoclosed, since it's easy to manually close a tag by invoking autocompletion and selecting the suggestion to close the tag. |
Looks to me this is working as expected now (with @felixfbecker can we close this issue? |
Indeed I worked on this usecase, we can close this issue. |
The tag already has a closing tag, and I am within a starting tag, so it should insert one.
The text was updated successfully, but these errors were encountered: