File tree Expand file tree Collapse file tree
packages/zowe-explorer/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ import { SharedUtils } from "../shared/SharedUtils";
4545import { FilterDescriptor , FilterItem } from "../../management/FilterManagement" ;
4646import { IconUtils } from "../../icons/IconUtils" ;
4747import { AuthUtils } from "../../utils/AuthUtils" ;
48+ import { ProfilesUtils } from "../../utils/ProfilesUtils" ;
4849import { DataSetTemplates } from "./DatasetTemplates" ;
4950import * as zosfiles from "@zowe/zos-files-for-zowe-sdk" ;
5051import { ZowePersistentFilters } from "../../tools/ZowePersistentFilters" ;
@@ -403,7 +404,8 @@ export class DatasetTree extends ZoweTreeProvider<IZoweDatasetTreeNode> implemen
403404 }
404405 const prevDescription = element . description ;
405406 const response = await element . getChildren (
406- SettingsConfig . getDirectValue < number > ( Constants . SETTINGS_DATASETS_PER_PAGE , Constants . DEFAULT_ITEMS_PER_PAGE ) > 0
407+ SettingsConfig . getDirectValue < number > ( Constants . SETTINGS_DATASETS_PER_PAGE , Constants . DEFAULT_ITEMS_PER_PAGE ) > 0 &&
408+ ! ProfilesUtils . isSshProfile ( element . getProfile ( ) )
407409 ) ;
408410
409411 // If getChildren updated the parent node's description,
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import { ZoweLogger } from "../tools/ZoweLogger";
2828import { SharedTreeProviders } from "../trees/shared/SharedTreeProviders" ;
2929import { SettingsConfig } from "../configuration/SettingsConfig" ;
3030import { SharedContext } from "../trees/shared/SharedContext" ;
31+ import { ProfilesUtils } from "./ProfilesUtils" ;
3132
3233interface ErrorContext {
3334 apiType ?: ZoweExplorerApiType ;
@@ -417,7 +418,8 @@ export class AuthUtils {
417418 nodeToRefresh . dirty = true ;
418419 const shouldPaginate =
419420 SharedContext . isDatasetNode ( nodeToRefresh ) &&
420- SettingsConfig . getDirectValue < number > ( Constants . SETTINGS_DATASETS_PER_PAGE , Constants . DEFAULT_ITEMS_PER_PAGE ) > 0 ;
421+ SettingsConfig . getDirectValue < number > ( Constants . SETTINGS_DATASETS_PER_PAGE , Constants . DEFAULT_ITEMS_PER_PAGE ) > 0 &&
422+ ! ProfilesUtils . isSshProfile ( nodeToRefresh . getProfile ( ) ) ;
421423 void nodeToRefresh
422424 . getChildren ( shouldPaginate )
423425 . then ( ( ) => SharedTreeProviders . getProviderForNode ( nodeToRefresh ) . refreshElement ( nodeToRefresh ) ) ;
Original file line number Diff line number Diff line change @@ -802,4 +802,8 @@ export class ProfilesUtils {
802802 public static hasNoAuthType ( session : ISession , profile : IProfileLoaded ) : boolean {
803803 return session . type === SessConstants . AUTH_TYPE_NONE && profile . type !== "ssh" ;
804804 }
805+
806+ public static isSshProfile ( profile : IProfileLoaded ) : boolean {
807+ return profile ?. type === "ssh" ;
808+ }
805809}
You can’t perform that action at this time.
0 commit comments