Skip to content

Commit 8d3703e

Browse files
Remove workaround for canonicalize function in tests
1 parent ac2f38b commit 8d3703e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
- Fix highlighting of other languages being affected by rescript-vscode. https://github.com/rescript-lang/rescript-vscode/pull/973
1818
- Use canonicalized URIs/paths for jump to definition. https://github.com/rescript-lang/rescript-vscode/pull/982
1919
- Fix JSX prop special case in end of JSX element. https://github.com/rescript-lang/rescript-vscode/pull/984
20+
- preserve URI format in canonicalizeUri. https://github.com/rescript-lang/rescript-vscode/pull/990
21+
- Remove workaround for canonicalize function in tests https://github.com/rescript-lang/rescript-vscode/pull/992
2022

2123
#### :nail_care: Polish
2224

analysis/src/Cfg.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
let debugFollowCtxPath = ref false
22

33
let isDocGenFromCompiler = ref false
4-
5-
let isTestMode = ref false

analysis/src/Files.ml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,5 @@ let classifySourceFile path =
104104
else Other
105105
106106
let canonicalizeUri uri =
107-
if Cfg.isTestMode.contents then uri |> Uri.toString
108-
else
109-
let path = Uri.toPath uri in
110-
path |> Unix.realpath |> Uri.fromPath |> Uri.toString
107+
let path = Uri.toPath uri in
108+
path |> Unix.realpath |> Uri.fromPath |> Uri.toString

0 commit comments

Comments
 (0)