Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit 381c4aa

Browse files
committed
Fix issue in jump-to-definition on Windows.
Fixes rescript-lang/rescript-vscode#98 (comment) The issue arises when the drive letter is lowercase.
1 parent bfc1bed commit 381c4aa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Changes.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# master
2+
- Fix issue in jump-to-definition on Windows. (See https://github.com/rescript-lang/rescript-vscode/issues/98) where the wrong URI was generated.
3+
4+
15
## Release 1.0.6 of rescript-vscode
26
This [commit](https://github.com/rescript-lang/rescript-editor-support/commit/03ee0d97b250474028d4fb08eac81ddb21ccb082) is vendored in [rescript-vscode 1.0.6](https://github.com/rescript-lang/rescript-vscode/releases/tag/1.0.6).
37

src/rescript-editor-support/Uri2.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module Uri: {
1919
++ (
2020
Str.global_replace(Str.regexp_string("\\"), "/", path)
2121
|> Str.substitute_first(
22-
Str.regexp("^\\([A-Z]\\):"),
22+
Str.regexp("^\\([a-zA-Z]\\):"),
2323
text => {
2424
let name = Str.matched_group(1, text);
2525
"/" ++ String.lowercase_ascii(name) ++ "%3A";

0 commit comments

Comments
 (0)