Skip to content

Commit

Permalink
use resourceUri path in USS encoding map
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Dec 13, 2024
1 parent c7cc054 commit 2fc7eb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen
- Fixed an issue where data set nodes did not update if migrated or recalled outside of Zowe Explorer. [#3294](https://github.com/zowe/zowe-explorer-vscode/issues/3294)
- Fixed an issue where listing data sets resulted in an error after opening a data set with an encoding. [#3347](https://github.com/zowe/zowe-explorer-vscode/issues/3347)
- Fixed an issue where binary USS files were not fetched using the "Pull from Mainframe" context menu option. [#3355](https://github.com/zowe/zowe-explorer-vscode/issues/3355)
- Fixed an issue where cached encoding was applied for all profiles with the same dataset in the "Open with Encoding" menu. [#3363](https://github.com/zowe/zowe-explorer-vscode/pull/3363)
- Fixed an issue where cached encoding was applied for all profiles with the same dataset or USS path in the "Open with Encoding" menu. [#3363](https://github.com/zowe/zowe-explorer-vscode/pull/3363)

## `3.0.3`

Expand Down
2 changes: 1 addition & 1 deletion packages/zowe-explorer/src/trees/shared/SharedUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class SharedUtils {
public static async getCachedEncoding(node: IZoweTreeNode): Promise<string | undefined> {
let cachedEncoding: ZosEncoding;
if (SharedUtils.isZoweUSSTreeNode(node)) {
cachedEncoding = await node.getEncodingInMap(node.fullPath);
cachedEncoding = await node.getEncodingInMap(node.resourceUri.path);
} else {
cachedEncoding = await (node as IZoweDatasetTreeNode).getEncodingInMap(node.resourceUri.path);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/zowe-explorer/src/trees/uss/ZoweUSSNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ export class ZoweUSSNode extends ZoweTreeNode implements IZoweUSSTreeNode {
}
UssFSProvider.instance.setEncodingForFile(this.resourceUri, encoding);
if (encoding != null) {
this.updateEncodingInMap(this.fullPath, encoding);
this.updateEncodingInMap(this.resourceUri.path, encoding);
} else {
delete UssFSProvider.instance.encodingMap[this.fullPath];
delete UssFSProvider.instance.encodingMap[this.resourceUri.path];
}
if (this.getParent() && this.getParent().contextValue === Constants.FAV_PROFILE_CONTEXT) {
this.contextValue =
Expand Down

0 comments on commit 2fc7eb2

Please sign in to comment.