We are currently contributing our own zowe service profiles (type zOpenDebug) using zowe-explorer-api. Our code has it's own watchers set up on the team config files. However, when all profiles of type zOpenDebug are removed from the team config file, the ZE-api ProfilesCache will still contain the removed profile. Note that aside from this case, the ProfilesCache seems to work as expected when multiple zOpenDebug profiles are added/deleted. It's only when they are ALL removed, that this bug occurs.
Steps to reproduce the behavior:
- Create a new zowe profile type using zowe-explorer-api.
- Create a zowe team config file if one isn't already present.
- Delete All instances of the new profile type from the team config file.
- call ProfileCache.refresh(). Despite profiles being removed from team config file, ProfilesCache will still return a reference to a profile.
Expected behavior
The ProfileCache should return an empty list for the new zowe profile type if they are all removed from the team config
Desktop (please complete the following information):
- OS: Windows 11
- Zowe Explorer Version: we are using @zowe/zowe-explorer-api@2.8.0
We are currently contributing our own zowe service profiles (type zOpenDebug) using zowe-explorer-api. Our code has it's own watchers set up on the team config files. However, when all profiles of type zOpenDebug are removed from the team config file, the ZE-api ProfilesCache will still contain the removed profile. Note that aside from this case, the ProfilesCache seems to work as expected when multiple zOpenDebug profiles are added/deleted. It's only when they are ALL removed, that this bug occurs.
Steps to reproduce the behavior:
Expected behavior
The ProfileCache should return an empty list for the new zowe profile type if they are all removed from the team config
Desktop (please complete the following information):