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

Completion should not generate the end tag if it exists an orphan end tag #1564

Open
angelozerr opened this issue Jul 30, 2023 · 0 comments
Open
Labels
bug Something isn't working completion This issue or enhancement is related to completion support XSD

Comments

@angelozerr
Copy link
Contributor

Given this pom.xml file where the start dependencies is missing:

<project xmlns="http://maven.apache.org/POM/4.0.0"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>

	<dependencyManagement>
			<!-- here it misses dependencies -->	
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-lang3</artifactId>
				<scope>provided</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
</project>

The completion inside just afterdependencyManagement, generate <dependencies></dependencies> although it should generate just <dependencies>, the completion should check that there is an orphan dependencies.

@angelozerr angelozerr added bug Something isn't working completion This issue or enhancement is related to completion support XSD labels Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completion This issue or enhancement is related to completion support XSD
Projects
None yet
Development

No branches or pull requests

1 participant