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";
14
14
import { HierarchicalPackageNode } from "./hierarchicalPackageNode" ;
15
15
import { NodeFactory } from "./nodeFactory" ;
16
16
import { PackageNode } from "./packageNode" ;
17
+ import { PrimaryTypeNode } from "./PrimaryTypeNode" ;
17
18
18
19
export class ProjectNode extends DataNode {
19
20
@@ -91,6 +92,12 @@ export class ProjectNode extends DataNode {
91
92
// Invisible project may have an empty named package root, in that case,
92
93
// we will skip it.
93
94
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
+ }
94
101
}
95
102
} ) ;
96
103
}
You can’t perform that action at this time.
0 commit comments