Skip to content

Problems with <group> and documentation/autocomplete. #1129

@vnmabus

Description

@vnmabus

Hover documentation and autocomplete do not work for me for elements inside a <group> in the namespace XSD.

Suppose I have the following minimal file (for illustration purposes):

<?xml version="1.0" ?>
<file xmlns:om="http://www.opengis.net/om/2.0">
    <om:result>Test</om:result>
    <om:resultTime>kk</om:resultTime>
</file>

and I have added the corresponding entry to the catalog, so that the extension can find the namespace:

<uri
      name="http://www.opengis.net/om/2.0"
      uri="http://schemas.opengis.net/om/2.0/observation.xsd"/>

Hovering and autocomplete work for <om:result>, which is a normal element in the XSD, showing that the extension is able to load the XSD properly:

Image

However, hovering and autocomplete do not work for <om:resultTime>, which is defined inside a <group> in the XSD.

My understanding is that groups are used to repeat sequences of elements that commonly appear together, but elements defined inside the group are part of the namespace and should have their documentation displayed accordingly, and also appear when using autocomplete. Is this a known bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions