-
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
"Bind to schema" doesn't work if the document doesn't have a root element #819
Closed
Comments
I noticed too that the codelens doesn't appear
It should appear |
It's probably something similar to eclipse-lemminx/lemminx#1396. I take a look at it. |
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Dec 13, 2022
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Dec 13, 2022
Fixes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Dec 13, 2022
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Dec 13, 2022
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Dec 14, 2022
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Dec 14, 2022
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Jan 4, 2023
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Jan 4, 2023
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561
added a commit
to datho7561/lemminx
that referenced
this issue
Jan 4, 2023
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
angelozerr
pushed a commit
to eclipse-lemminx/lemminx
that referenced
this issue
Jan 8, 2023
Allows you to use the code action to bind to a schema when a document doesn't have a root element. Also, the bind schema CodeLens is shown when the document doesn't have a root element. It generates an element `placeholder-element-name` when the binding strategy requires a root element to function (eg. `schemaLocation`, `noNamespaceSchemaLocation`). It also uses `placeholder-element-name` when binding to a `.dtd` using a DOCTYPE declaration. Closes redhat-developer/vscode-xml#819 Signed-off-by: David Thompson <davthomp@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
eg. activate the "Bind to schema" command using the following XML document:
A popup appears saying that the document is already bound to a grammar. It would be nice to get it to work even if there is no root element, or at least correct the popup to say that there needs to be a root element to bind to a grammar.
The text was updated successfully, but these errors were encountered: