Skip to content

Commit

Permalink
Enabled multi declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Apr 25, 2024
1 parent aee18ac commit 50fa05c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public String getModuleQualifiedName() {
*/
public List<LocationLink> getDefinitionLocations(int position) {
// In the case of Acceleo and AQL all definition are located at the declaration.
return getDeclarationLocations(position, false);
return getDeclarationLocations(position, true);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private CompletableFuture<Either<List<? extends Location>, List<? extends Locati
acceleoTextDocument.getContents());

canceler.checkCanceled();
return Either.forRight(acceleoTextDocument.getDeclarationLocations(atIndex, false));
return Either.forRight(acceleoTextDocument.getDeclarationLocations(atIndex, true));
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ private URI getSourceURI(IJavaProject javaProject, String qualifiedName) throws
.getLocationURI();
final File file = new File(uri);
if (file.isFile() && file.exists()) {
res = file.toURI();
res = URI.create("file://" + file.getAbsolutePath());
break found;
}
}
Expand Down

0 comments on commit 50fa05c

Please sign in to comment.