diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..034fd378 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,8 @@ +.github +.husky +.vscode +dist +lib +node_modules +scripts +package-lock.json \ No newline at end of file diff --git a/.vscode/extension.json b/.vscode/extension.json index c83e2634..9edd4f1d 100644 --- a/.vscode/extension.json +++ b/.vscode/extension.json @@ -1,3 +1,3 @@ { "recommendations": ["esbenp.prettier-vscode"] -} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5751d8ed..1de9da24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12576,8 +12576,9 @@ } }, "node_modules/ip": { - "version": "2.0.0", - "license": "MIT" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", + "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==" }, "node_modules/is-arrayish": { "version": "0.2.1", diff --git a/packages/vsce/CHANGELOG.md b/packages/vsce/CHANGELOG.md index e03d65a6..3255f115 100644 --- a/packages/vsce/CHANGELOG.md +++ b/packages/vsce/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to the "cics-extension-for-zowe" extension will be documented in this file. +## Recent Changes + +- BugFix: Fixed icons not displaying.[#112](https://github.com/zowe/cics-for-zowe-client/issues/112) +- BugFix: Updated dependencies for technical currency + ## `1.3.1` - BugFix: Updated dependencies for technical currency diff --git a/packages/vsce/src/utils/getIconPath.ts b/packages/vsce/src/utils/getIconPath.ts index 38ed63d1..c1266f0b 100644 --- a/packages/vsce/src/utils/getIconPath.ts +++ b/packages/vsce/src/utils/getIconPath.ts @@ -13,7 +13,9 @@ import { join } from "path"; export function getIconPathInResources(iconFileNameLight: string, iconFileNameDark: 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), }; } diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 00000000..1bcc440b --- /dev/null +++ b/prettier.config.js @@ -0,0 +1 @@ +module.exports = { printWidth: 150 };