Skip to content

Commit

Permalink
Merge pull request #4 from lorchrob/imp-nodes
Browse files Browse the repository at this point in the history
Include imported nodes in getComponents
  • Loading branch information
daniel-larraz authored May 9, 2024
2 parents 0863b72 + 8d720b1 commit ec148dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/edu/uiowa/kind2/lsp/Kind2LanguageServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ public CompletableFuture<List<String>> getComponents(String uri) {
if (parseResults.containsKey(uri)) {
try {
for (AstInfo info : parseResults.get(uri).getAstInfos()) {
if (info instanceof NodeInfo && !((NodeInfo) info).isImported()
|| info instanceof FunctionInfo
&& !((FunctionInfo) info).isImported()) {
if (info instanceof NodeInfo || info instanceof FunctionInfo) {
components.add(replacePathWithUri(info.getJson(), uri,
info.getFile() == null ? new URI(uri).getPath()
: info.getFile()));
Expand Down

0 comments on commit ec148dc

Please sign in to comment.