Skip to content

Commit 80deac0

Browse files
authored
Normalize folder/file URI paths with slash (microsoft#184163)
1 parent dbeea39 commit 80deac0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/platform/windows/electron-main/windowsMainService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,9 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
869869

870870
return undefined;
871871
}
872+
if (!uri.path) {
873+
return uri.with({ path: '/' });
874+
}
872875

873876
return uri;
874877
} catch (e) {

0 commit comments

Comments
 (0)