mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 09:35:38 -05:00
Fixing connection without saved password not connecting in Async Server Tree (#22535)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user