File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,8 @@ export class PackageRootNode extends DataNode {
2121 }
2222
2323 public getLabel ( ) : string {
24- if ( this . getParent ( ) instanceof ContainerNode ) {
25- const parent = this . getParent ( ) as ContainerNode ;
26- if ( parent . getContainerType ( ) == ContainerType . Maven ) {
27- return `${ this . _nodeData . metaData ?. [ 'maven.groupId' ] } :${ this . _nodeData . metaData ?. [ 'maven.artifactId' ] } :${ this . _nodeData . metaData ?. [ 'maven.version' ] } ` ;
28- }
24+ if ( this . _nodeData . metaData ?. [ 'maven.groupId' ] ) {
25+ return `${ this . _nodeData . metaData ?. [ 'maven.groupId' ] } :${ this . _nodeData . metaData ?. [ 'maven.artifactId' ] } :${ this . _nodeData . metaData ?. [ 'maven.version' ] } ` ;
2926 }
3027 return this . _nodeData . displayName ?? this . _nodeData . name ;
3128 }
You can’t perform that action at this time.
0 commit comments