File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -792,18 +792,18 @@ export function initializeObjectBrowser(context: vscode.ExtensionContext) {
792
792
793
793
} ) ,
794
794
795
- vscode . commands . registerCommand ( `code-for-ibmi.downloadMemberAsFile` , async ( node : BrowserItem , nodes ?: BrowserItem [ ] ) => {
795
+ vscode . commands . registerCommand ( `code-for-ibmi.downloadMemberAsFile` , async ( node : ObjectItem | MemberItem , nodes ?: ( ObjectItem | MemberItem ) [ ] ) => {
796
796
const contentApi = getContent ( ) ;
797
797
const connection = getConnection ( ) ;
798
798
const config = getConfig ( ) ;
799
799
800
800
//Gather all the members
801
801
const members : IBMiMember [ ] = [ ] ;
802
802
for ( const item of ( nodes || [ node ] ) ) {
803
- if ( item instanceof ObjectBrowserSourcePhysicalFileItem ) {
803
+ if ( "object" in item ) {
804
804
members . push ( ...await contentApi . getMemberList ( { library : item . object . library , sourceFile : item . object . name } ) ) ;
805
805
}
806
- else if ( item instanceof ObjectBrowserMemberItem ) {
806
+ else if ( "member" in item ) {
807
807
members . push ( item . member ) ;
808
808
}
809
809
}
You can’t perform that action at this time.
0 commit comments