Skip to content

Commit f090035

Browse files
authored
fix: Cannot show compilation units under the default package (#447)
1 parent b0bb864 commit f090035

File tree

1 file changed

+3
-0
lines changed
  • jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/model

1 file changed

+3
-0
lines changed

jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/model/Trie.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public Set<TrieNode<T>> getAllNodes() {
3333

3434
public void insert(String name, T value) {
3535
if (StringUtils.isBlank(name)) {
36+
// default package
37+
root.value = value;
38+
allNodes.add(root);
3639
return;
3740
}
3841

0 commit comments

Comments
 (0)