File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -282,8 +282,8 @@ export let runBuildWatcherUsingValidBuildPath = (
282282*/
283283
284284// parser helpers
285- let normalizeFileForWindows = ( file : string ) => {
286- return process . platform === "win32" ? `file:\\\\\\${ file } ` : file ;
285+ let pathToURI = ( file : string ) => {
286+ return process . platform === "win32" ? `file:\\\\\\${ file } ` : ` file:// ${ file } ` ;
287287} ;
288288let parseFileAndRange = ( fileAndRange : string ) => {
289289 // https://github.com/rescript-lang/rescript-compiler/blob/0a3f4bb32ca81e89cefd5a912b8795878836f883/jscomp/super_errors/super_location.ml#L15-L25
@@ -307,7 +307,7 @@ let parseFileAndRange = (fileAndRange: string) => {
307307 if ( match === null ) {
308308 // no location! Though LSP insist that we provide at least a dummy location
309309 return {
310- file : normalizeFileForWindows ( trimmedFileAndRange ) ,
310+ file : pathToURI ( trimmedFileAndRange ) ,
311311 range : {
312312 start : { line : 0 , character : 0 } ,
313313 end : { line : 0 , character : 0 } ,
@@ -352,7 +352,7 @@ let parseFileAndRange = (fileAndRange: string) => {
352352 } ;
353353 }
354354 return {
355- file : normalizeFileForWindows ( file ) ,
355+ file : pathToURI ( file ) ,
356356 range,
357357 } ;
358358} ;
You can’t perform that action at this time.
0 commit comments