Skip to content

Commit 21a3d55

Browse files
Fix passing relative path for profileDir when extensions are used
Installing and loading extensions is based on the `--profileDir` value. In case a relative path is passed, the extensions cannot be loaded as the resolve is not correct. Resolve the full path, so the loading will work correctly.
1 parent c1e2ce7 commit 21a3d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/extensibility-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as constants from "../constants";
44

55
export class ExtensibilityService implements IExtensibilityService {
66
private get pathToExtensions(): string {
7-
return path.join(this.$options.profileDir, "extensions");
7+
return path.join(path.resolve(this.$options.profileDir), "extensions");
88
}
99

1010
private get pathToPackageJson(): string {

0 commit comments

Comments
 (0)