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

Improve CodeAction "Insert only required expected elements" by taking care of choice #1448

Closed
angelozerr opened this issue Jan 13, 2023 · 0 comments · Fixed by #1455
Closed
Assignees
Milestone

Comments

@angelozerr
Copy link
Contributor

Given this XML file:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt>
				<title></title>
			</titleStmt>
			<publicationStmt>
				<publisher></publisher>
			</publicationStmt>
			<sourceDesc>
				<p></p>
			</sourceDesc>
		</fileDesc>
	</teiHeader>
	<text>

	</text>
</TEI>

As text element can hosts several element kind (addSpan, etc), it should be nice to provide a code action per possible element to generate the content of text.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants