Skip to content

zowe config secure - prune option . Is there an API to accomplish this in VSCode Extensions? #1747

Answered by t1m0thyj
davidkjackson54 asked this question in Q&A
Discussion options

You must be logged in to vote

@davidkjackson54 ImperativeConfig.instance.config is only defined in the context of Zowe CLI command handlers. In a VS Code extension where you're using the ProfileInfo API, the way to access the config would be profInfo.getTeamConfig() (where profInfo is an instance of the ProfileInfo class).

The directSave API we probably should have made public rather than internal. For now, you could work around this by calling (config.api.secure as any).directSave.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@t1m0thyj
Comment options

Answer selected by davidkjackson54
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working new The issue wasn't triaged yet
2 participants
Converted from issue

This discussion was converted from issue #1745 on July 10, 2023 15:28.