Skip to content

Commit 7251c12

Browse files
committed
Fix issue with references to elements defined in an interface file
Fixes #645
1 parent be24bf4 commit 7251c12

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141

4242
- Fix issue with references to elements defined in an interface file https://github.com/rescript-lang/rescript-vscode/pull/646
4343

44+
- Fix issue with references to elements defined in an interface file https://github.com/rescript-lang/rescript-vscode/issues/645
45+
4446
## v1.8.2
4547

4648
#### :rocket: New Feature

Diff for: analysis/src/Commands.ml

+5-3
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,11 @@ let references ~path ~pos ~debug =
172172
| Some loc -> loc
173173
| None -> Uri.toTopLevelLoc uri2
174174
in
175-
Protocol.stringifyLocation
176-
{uri = Uri.toString uri2; range = Utils.cmtLocToRange loc}
177-
:: acc)
175+
if loc.loc_ghost then acc
176+
else
177+
Protocol.stringifyLocation
178+
{uri = Uri.toString uri2; range = Utils.cmtLocToRange loc}
179+
:: acc)
178180
[])
179181
in
180182
print_endline

0 commit comments

Comments
 (0)