mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fixing OE disconnecting connections when other types of connections are disconnected. (#23080)
This commit is contained in:
@@ -229,10 +229,10 @@ export class ServerTreeView extends Disposable implements IServerTreeView {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
this._register(this._connectionManagementService.onDisconnect(async (connectionParams) => {
|
this._register(this._connectionManagementService.onDisconnect(async (connectionParams) => {
|
||||||
if (this._tree instanceof AsyncServerTree) {
|
if (this.isObjectExplorerConnectionUri(connectionParams.connectionUri)) {
|
||||||
await this.disconnectConnection(<ConnectionProfile>connectionParams.connectionProfile);
|
if (this._tree instanceof AsyncServerTree) {
|
||||||
} else {
|
await this.disconnectConnection(<ConnectionProfile>connectionParams.connectionProfile);
|
||||||
if (this.isObjectExplorerConnectionUri(connectionParams.connectionUri)) {
|
} else {
|
||||||
this.deleteObjectExplorerNodeAndRefreshTree(connectionParams.connectionProfile).catch(errors.onUnexpectedError);
|
this.deleteObjectExplorerNodeAndRefreshTree(connectionParams.connectionProfile).catch(errors.onUnexpectedError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user