Fixed bullet 3 of https://github.com/codefori/vscode-ibmi/issues/2088 by updating the current listener on code-for-ibmi.connections to detect and delete stale cached server settings. Also, refresh the connection browser to remove any deleted connections
Delete cached server settings when login settings are changed
How to test this PR
Examples:
Create a new connection and connect so there exists some cached server settings.
Manually delete the connection from the settings.json file.
Observe that the connection is removed from the connection browser view.
Create a new connection with the same name.
Debug the extension and observe that connecting to the new connection does not reuse the old cached server settings.
Disconnect and use the Login Settings action to change to another host or user profile.
Changes
code-for-ibmi.connections
to detect and delete stale cached server settings. Also, refresh the connection browser to remove any deleted connectionsHow to test this PR
Examples:
settings.json
file.Login Settings
action to change to another host or user profile.Checklist
console.log
s I added