File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/jupyterlab-lsp/src Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -359,13 +359,19 @@ export namespace DocumentConnectionManager {
359
359
throw `No language server installed for language ${ language } ` ;
360
360
}
361
361
362
- // workaround url-parse bug (see https://github.com/krassowski/jupyterlab-lsp/issues/595)
362
+ // workaround url-parse bug(s) (see https://github.com/krassowski/jupyterlab-lsp/issues/595)
363
363
let documentUri = URLExt . join ( baseUri , virtual_document . uri ) ;
364
364
if (
365
365
! documentUri . startsWith ( 'file:///' ) &&
366
366
documentUri . startsWith ( 'file://' )
367
367
) {
368
368
documentUri = documentUri . replace ( 'file://' , 'file:///' ) ;
369
+ if (
370
+ documentUri . startsWith ( 'file:///users/' ) &&
371
+ baseUri . startsWith ( 'file:///Users/' )
372
+ ) {
373
+ documentUri = documentUri . replace ( 'file:///users/' , 'file:///Users/' ) ;
374
+ }
369
375
}
370
376
371
377
return {
You can’t perform that action at this time.
0 commit comments