Skip to content

Commit b9dce0f

Browse files
committed
make sure workspace folder paths are absolute, microsoft#48951
1 parent 050e66f commit b9dce0f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/platform/workspace/common/workspace.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ function parseWorkspaceFolders(configuredFolders: IStoredWorkspaceFolder[], rela
238238
} else if (isRawUriWorkspaceFolder(configuredFolder)) {
239239
try {
240240
uri = URI.parse(configuredFolder.uri);
241+
// this makes sure all workspace folder are absolute
242+
if (uri.path[0] !== '/') {
243+
uri = uri.with({ path: '/' + uri.path });
244+
}
241245
} catch (e) {
242246
console.warn(e);
243247
// ignore

0 commit comments

Comments
 (0)