Fixing connection without saved password not connecting in Async Server Tree (#22535)

This commit is contained in:
Aasim Khan
2023-03-31 09:19:01 -07:00
committed by GitHub
parent a1acaf2096
commit d49ff85afc
4 changed files with 12 additions and 2 deletions

View File

@@ -472,6 +472,11 @@ export class ServerTreeView extends Disposable implements IServerTreeView {
await this._connectionManagementService.deleteConnection(profile);
}
const connectionProfile = this.getConnectionInTreeInput(profile.id);
// For the connection profile, we need to clear the password from the last session if the user doesn't want to save it
if (!connectionProfile.savePassword) {
connectionProfile.password = '';
}
// Delete the node from the tree
await this._objectExplorerService.deleteObjectExplorerNode(connectionProfile);
// Collapse the node