Is your feature request related to a problem? Please describe.
In an effort to reduce the maintenance efforts of Zowe Explorer, it might be convenient to group related methods under a single class. This should help streamline how imports are handled when developing new features and how tests are written for these new methods.
Describe the solution you'd like
Ideally we will use singleton classes 😋
Describe alternatives you've considered
We can consider using:
- Classes with static methods: may have its own drawbacks (not all of which may apply in our case)
- Namespaces: may cause issues when writing jest-tests for method that are not explicitly exported (medium)
Additional context
Suggestion:
Is your feature request related to a problem? Please describe.
In an effort to reduce the maintenance efforts of Zowe Explorer, it might be convenient to group related methods under a single class. This should help streamline how imports are handled when developing new features and how tests are written for these new methods.
Describe the solution you'd like
Ideally we will use singleton classes 😋
Describe alternatives you've considered
We can consider using:
Additional context
Suggestion:
extension.ts#2080 (comment)defaultwhenever possible 😋