diff --git a/packages/vsce/src/utils/profileUtils.ts b/packages/vsce/src/utils/profileUtils.ts index 31d7da3a..d5e1d770 100644 --- a/packages/vsce/src/utils/profileUtils.ts +++ b/packages/vsce/src/utils/profileUtils.ts @@ -28,8 +28,10 @@ export function missingSessionParameters(profileProfile: any): (string | undefin export function getIconPathInResources(iconFileNameLight: string, iconFileNameDark: string): { light: string; dark: string } { return { - light: join(__dirname, "..", "..", "resources", "imgs", iconFileNameLight), - dark: join(__dirname, "..", "..", "resources", "imgs", iconFileNameDark), + // We bundle the extension into a single `dist/extension.js` + // `__dirname/../resources/imgs === `/path/to/dist/../resources/imgs` + light: join(__dirname, "..", "resources", "imgs", iconFileNameLight), + dark: join(__dirname, "..", "resources", "imgs", iconFileNameDark), }; }