-
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
Discrepancy in completion between prefixed and default namespaces #87
Comments
Can you provide a sample document reproducing this issue? |
@fbricon is attached now |
ok, I can reproduce the issue with those samples, thanks! |
@ralfhandl just for your information this issue should be fixed with my PR eclipse-lemminx/lemminx#478 planned for 0.8.0 |
Fixed by eclipse-lemminx/lemminx#478 |
Thanks @ralfhandl for your great information. It was an hard issue but it is now fixed. Just for your information Completion on 0.8.0 is improved by filtering XML completion item according the existing XML elements of the document. See eclipse-lemminx/lemminx#505 |
@angelozerr Cool, thanks! When will the VS Code XML plugin 0.8.0 be released? |
@ralfhandl before the end of the month. Until then, you can try the latest CI build from https://download.jboss.org/jbosstools/vscode-xml/staging/?C=M;O=D |
I have XML files that use an "outer" namespace which in turn imports an "inner" namespace.
If the "inner" namespace is declared as the default namespace via
xmlns="..."
, code completion works fine in the "outer" and the "inner" part, e.g.:However if the "inner" namespace is declared with a namespace prefix via
xmlns:edm="..."
, code completion for constructs in the "outer" namespace also shows top-level elements from the "inner" namespace that are not allowed by the "outer" XSD in that place:This effect only shows on "level 1", i.e. directly below the root element of the "outer" namespace, where no elements of the "inner" namespace are allowed at all.
On "level 2", i.e. within children of the root element, code completion works fine and only shows allowed elements.
Test project is attached: vscode-xml-catalog-test.zip
examples/mini-catalog.xml
works as expectedexamples/mini-catalog-prefix.xml
has the above strange behavior in one place.The text was updated successfully, but these errors were encountered: