Skip to content
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

Add support for textDocument/completion for xs:element/@name / xs:extension/@base #451

Closed
angelozerr opened this issue Jun 19, 2019 · 0 comments · Fixed by #461
Closed
Assignees
Labels
completion This issue or enhancement is related to completion support enhancement New feature or request XSD
Milestone

Comments

@angelozerr
Copy link
Contributor

angelozerr commented Jun 19, 2019

Add support for textDocument/completion for xs:element/@name / xs:extension/@base

With the XML sample:

<?xml version="1.1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	
	<xs:element name="employee" type="fullpersoninfo">
		
	</xs:element>
	
	<xs:complexType name="personinfo">
		<xs:sequence> 
			<xs:element name="firstname" type="xs:string" />
			<xs:element name="lastname" type="xs:string" />
		</xs:sequence>
	</xs:complexType>
	
	<xs:complexType name="fullpersoninfo">
		<xs:complexContent>
			<xs:extension base="personinfo">
				<xs:sequence>
					<xs:element name="address" type="xs:string" />
					<xs:element name="city" type="xs:string" />
					<xs:element name="country" type="xs:string" />
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	
</xs:schema>

Completion on <xs:element name="employee" type="| and <xs:extension base="| should display

  • fullpersoninfo
  • personinfo
  • xs:string, xs:number, etc
@angelozerr angelozerr added completion This issue or enhancement is related to completion support XSD labels Jun 19, 2019
@angelozerr angelozerr self-assigned this Jun 20, 2019
@angelozerr angelozerr added this to the v0.8.0 milestone Jun 20, 2019
@angelozerr angelozerr changed the title Add support for textDocument/completion for xs:element/@name / xs:extension/@name Add support for textDocument/completion for xs:element/@name / xs:extension/@base Jun 20, 2019
@angelozerr angelozerr added the enhancement New feature or request label Jun 20, 2019
angelozerr added a commit that referenced this issue Jun 20, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 21, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 21, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 21, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 24, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 24, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 24, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 24, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 24, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit that referenced this issue Jun 24, 2019
xs:extension/@base

Fix #451

Signed-off-by: azerr <azerr@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completion This issue or enhancement is related to completion support enhancement New feature or request XSD
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant