Skip to content

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

@angelozerr

Description

@angelozerr

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions