File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 29
29
"@opam/ppxlib" : " *" ,
30
30
"@opam/reason" : " >= 3.5.0" ,
31
31
"@opam/stdlib-shims" : " *" ,
32
+ "@opam/uri" : " 3.1.0" ,
32
33
"@reason-native/pastel" : " ^0.2.2" ,
33
34
"@reason-native/rely" : " ^3.1.0" ,
34
35
"ocaml" : " ~4.8.1000" ,
Original file line number Diff line number Diff line change @@ -130,9 +130,11 @@ let parseWindowsUri = withoutScheme => {
130
130
|> String . concat({| \|} )
131
131
};
132
132
133
- let parseUri = (uri) =>
134
- if (startsWith(uri, "file://" )) {
135
- let withoutScheme = sliceToEnd(uri, String . length("file://" ));
133
+ let parseUri = (uri) => {
134
+ let withoutPct = Uri . pct_decode(uri);
135
+ if (startsWith(withoutPct, "file://" )) {
136
+ let withoutScheme = sliceToEnd(withoutPct, String . length("file://" ));
137
+
136
138
if (Sys . os_type == "Unix" ) {
137
139
Some (withoutScheme)
138
140
} else {
@@ -141,6 +143,7 @@ let parseUri = (uri) =>
141
143
} else {
142
144
None
143
145
};
146
+ }
144
147
145
148
let locationOffset = (loc, start, length) =>
146
149
Location . {
Original file line number Diff line number Diff line change 1
1
(library
2
2
(name Util)
3
3
(public_name reason-language-server.Util)
4
- (libraries Belt Vendor str)
4
+ (libraries Belt Vendor str uri )
5
5
(flags :standard -open Vendor -w -9)
6
6
(preprocess (pps Belt_ppx Ppx_monads))
7
7
)
You can’t perform that action at this time.
0 commit comments