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

Fix issue in jump-to-definition on Windows. #83

Merged
merged 1 commit into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# master
- Fix issue in jump-to-definition on Windows. (See https://github.com/rescript-lang/rescript-vscode/issues/98) where the wrong URI was generated.


## Release 1.0.6 of rescript-vscode
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).

Expand Down
2 changes: 1 addition & 1 deletion src/rescript-editor-support/Uri2.re
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Uri: {
++ (
Str.global_replace(Str.regexp_string("\\"), "/", path)
|> Str.substitute_first(
Str.regexp("^\\([A-Z]\\):"),
Str.regexp("^\\([a-zA-Z]\\):"),
text => {
let name = Str.matched_group(1, text);
"/" ++ String.lowercase_ascii(name) ++ "%3A";
Expand Down