Vscode-extension-for-zowe: Cannot add profile created in CLI

Created on 29 Apr 2020  路  6Comments  路  Source: zowe/vscode-extension-for-zowe

Given I am in VSCode,
When I add a profile from CLI and then try to add it in the Explorer by clicking + in dataset/uss/jobs trees,
Then I do not see the profile in the list.

To see the newly created profile I have to restart VSCode. It would be nice to be able to add the profile to a tree after it was created - without having to restart VSCode.

21PI1 Medium Profiles Research Needed enhancement

All 6 comments

Correction - I do not have to restart VSCode, I can click the _Refresh All_ button
Screenshot 2020-04-29 at 16 22 00 . Thank you @crawr

It would still be nice to get the profile without having to know this and clicking the refresh button.

In case someone is looking for more background on the refresh button there, please checkout https://github.com/zowe/vscode-extension-for-zowe/issues/161

For the case wen a user is clicking the + button to add a profile I can imagine that we would read the current list of profiles an offer that, rather than what we have in memory. That way the user will get the up to date list to choose from. If a profile was added it will be there, if it was deleted, it will not be there.

I believe this ^^^ would not be too complicated to do.

I think we may take the experience another step forward.

When editing the same file in multiple editors like vim/vscode/webstorm I got used to a feature of all these editors that when I switch between apps they update the contents of the file from the disk. This even works when the file is changed from a terminal through some cli command.

In case we could hook to the window or app focus event we could do the same thing for profiles - checking if something changed and update the UI acordingly.

What do you think?

We need to do research to understand how best to read new profile information in the yaml files and complete a refresh. @lauren-li can add more details :)

Part of the effort described in #1163

Was this page helpful?
0 / 5 - 0 ratings