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

Commit 9280c33

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 03ee0d9 commit 9280c33

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Changes.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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+
14
## Upcoming Release of rescript-vscode
25

36
#### New features

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)