Skip to content

Commit

Permalink
use refresh for migrate instead of refreshElement
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Nov 20, 2024
1 parent 0c74af8 commit caf22de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/zowe-explorer/src/dataset/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1360,13 +1360,10 @@ export async function hMigrateDataSet(
const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hMigrateDataSet(dataSetName);
api.Gui.showMessage(localize("hMigrateDataSet.requestSent", "Migration of data set {0} requested.", dataSetName));
node.contextValue = globals.DS_MIGRATED_FILE_CONTEXT;
if (node.collapsibleState === vscode.TreeItemCollapsibleState.Expanded) {
node.children = [];
}

node.collapsibleState = vscode.TreeItemCollapsibleState.None;
node.command = undefined;
node.setIcon(getIconByNode(node).path);
datasetProvider.refreshElement(node);
datasetProvider.refresh();
return response;
} catch (err) {
ZoweLogger.error(err);
Expand Down

0 comments on commit caf22de

Please sign in to comment.