mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 09:35:39 -05:00
Remove disposable from connection (#22687)
* Remove disposable from connection * Remove from group
This commit is contained in:
@@ -181,10 +181,8 @@ export class ConnectionStore {
|
||||
}
|
||||
|
||||
public getProfileWithoutPassword(conn: IConnectionProfile): ConnectionProfile {
|
||||
let savedConn = ConnectionProfile.fromIConnectionProfile(this.capabilitiesService, conn);
|
||||
let newSavedConn = savedConn.withoutPassword();
|
||||
savedConn.dispose();
|
||||
return newSavedConn;
|
||||
const savedConn = ConnectionProfile.fromIConnectionProfile(this.capabilitiesService, conn);
|
||||
return savedConn.withoutPassword();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -229,9 +227,7 @@ export class ConnectionStore {
|
||||
|
||||
list.unshift(savedProfile);
|
||||
|
||||
const profiles = list.filter(n => n !== undefined).map(c => c.toIConnectionProfile());
|
||||
list.forEach(c => c.dispose());
|
||||
return profiles;
|
||||
return list.filter(n => n !== undefined).map(c => c.toIConnectionProfile());
|
||||
}
|
||||
|
||||
private removeFromConnectionList(conn: IConnectionProfile, list: ConnectionProfile[]): IConnectionProfile[] {
|
||||
|
||||
Reference in New Issue
Block a user