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 5347d36e..cdc0eb62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11910,8 +11910,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 db72b9ba..943eeecc 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 + ## `2.3.3` - BugFix: Updated dependencies for technical currency diff --git a/packages/vsce/src/utils/profileManagement.ts b/packages/vsce/src/utils/profileManagement.ts index bbf19c01..c50b778b 100644 --- a/packages/vsce/src/utils/profileManagement.ts +++ b/packages/vsce/src/utils/profileManagement.ts @@ -20,7 +20,7 @@ import { LoggerUtils } from "./loggerUtils"; export class ProfileManagement { private static zoweExplorerAPI = ZoweVsCodeExtension.getZoweExplorerApi(); - private static ProfilesCache = new ProfilesCache(LoggerUtils.instance.getImperativeLogger()); + private static ProfilesCache = ProfileManagement.zoweExplorerAPI.getExplorerExtenderApi().getProfilesCache(); constructor() {} 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), }; } 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 };