@@ -13,7 +13,7 @@ import { TreeItemCollapsibleState, TreeItem, window } from "vscode";
13
13
import { CICSRegionTree } from "../CICSRegionTree" ;
14
14
import { getResource } from "@zowe/cics-for-zowe-sdk" ;
15
15
import { CICSLibraryDatasets } from "./CICSLibraryDatasets" ;
16
- import { getFolderIcon } from "../../utils/iconUtils" ;
16
+ import { getIconFilePathFromName } from "../../utils/iconUtils" ;
17
17
import { toArray } from "../../utils/commandUtils" ;
18
18
19
19
export class CICSLibraryTreeItem extends TreeItem {
@@ -27,7 +27,7 @@ export class CICSLibraryTreeItem extends TreeItem {
27
27
library : any ,
28
28
parentRegion : CICSRegionTree ,
29
29
directParent : any ,
30
- public iconPath = getFolderIcon ( false ) ,
30
+ public iconPath = getIconFilePathFromName ( "library" ) ,
31
31
) {
32
32
super ( `${ library . name } ` , TreeItemCollapsibleState . Collapsed ) ;
33
33
@@ -69,14 +69,12 @@ export class CICSLibraryTreeItem extends TreeItem {
69
69
const newDatasetItem = new CICSLibraryDatasets ( dataset , this . parentRegion , this ) ; //this=CICSLibraryTreeItem
70
70
this . addDataset ( newDatasetItem ) ;
71
71
}
72
- this . iconPath = getFolderIcon ( true ) ;
73
72
} catch ( error ) {
74
73
if ( error . mMessage ! . includes ( "exceeded a resource limit" ) ) {
75
74
window . showErrorMessage ( `Resource Limit Exceeded - Set a datasets filter to narrow search` ) ;
76
75
} else if ( this . children . length === 0 ) {
77
76
window . showInformationMessage ( `No datasets found` ) ;
78
77
this . label = this . buildLabel ( [ ] ) ;
79
- this . iconPath = getFolderIcon ( true ) ;
80
78
} else {
81
79
window . showErrorMessage (
82
80
`Something went wrong when fetching datasets - ${ JSON . stringify ( error , Object . getOwnPropertyNames ( error ) ) . replace (
0 commit comments