Completion should not generate the end tag if it exists an orphan end tag
Opened this issue · 0 comments
angelozerr commented
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
.