File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { ExplorerNode } from "./explorerNode";
1414import { HierarchicalPackageNode } from "./hierarchicalPackageNode" ;
1515import { NodeFactory } from "./nodeFactory" ;
1616import { PackageNode } from "./packageNode" ;
17+ import { PrimaryTypeNode } from "./PrimaryTypeNode" ;
1718
1819export class ProjectNode extends DataNode {
1920
@@ -91,6 +92,12 @@ export class ProjectNode extends DataNode {
9192 // Invisible project may have an empty named package root, in that case,
9293 // we will skip it.
9394 packageData . push ( data ) ;
95+ } else if ( data . kind === NodeKind . PrimaryType ) {
96+ // For invisible project with empty named package root with a default package,
97+ // types will be the project node's children
98+ if ( data . metaData && data . metaData [ PrimaryTypeNode . K_TYPE_KIND ] ) {
99+ result . push ( new PrimaryTypeNode ( data , this ) ) ;
100+ }
94101 }
95102 } ) ;
96103 }
You can’t perform that action at this time.
0 commit comments