Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(icons): Display icons for all resources #114

Merged
merged 5 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
.husky
.vscode
dist
lib
node_modules
scripts
package-lock.json
2 changes: 1 addition & 1 deletion .vscode/extension.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode"]
}
}
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/vsce/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/vsce/src/utils/profileManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

Expand Down
6 changes: 4 additions & 2 deletions packages/vsce/src/utils/profileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
}

Expand Down
1 change: 1 addition & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { printWidth: 150 };
Loading