Skip to content

Commit 43bdb22

Browse files
committed
Generate source locations from ranges.
1 parent 64e793d commit 43bdb22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/util/CallHierarchy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public static IConstructor toRascal(CallHierarchyItem ci, ColumnMaps columns) {
8787
return VF.constructor(callHierarchyItemCons, List.of(
8888
VF.string(ci.getName()),
8989
VF.constructor(TF.constructor(store, DocumentSymbols.symbolKindAdt, ci.getKind().name())),
90-
null, // TODO Use generation code from https://github.com/usethesource/rascal-language-servers/pull/677
91-
null // TODO Use generation code from https://github.com/usethesource/rascal-language-servers/pull/677
90+
Locations.toSourceLocation(Locations.toLoc(ci.getUri()), ci.getRange(), columns),
91+
Locations.toSourceLocation(Locations.toLoc(ci.getUri()), ci.getSelectionRange(), columns)
9292
).toArray(new IValue[0]), Map.of(
9393
TAGS, DocumentSymbols.symbolTagsToRascal(ci.getTags()),
9494
DETAIL, VF.string(ci.getDetail()),

0 commit comments

Comments
 (0)