mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Do not disconnect editor when canceling change connection (#2144)
This commit is contained in:
@@ -1120,7 +1120,8 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
|||||||
resolve(result);
|
resolve(result);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
resolve(self.disconnectEditor(owner));
|
// If the editor is connected then there is nothing to cancel
|
||||||
|
resolve(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,9 +144,6 @@ export class ConnectionDialogService implements IConnectionDialogService {
|
|||||||
} else {
|
} else {
|
||||||
this._connectionManagementService.cancelConnection(this._model);
|
this._connectionManagementService.cancelConnection(this._model);
|
||||||
}
|
}
|
||||||
if (params && params.input && params.input.onConnectReject) {
|
|
||||||
params.input.onConnectReject();
|
|
||||||
}
|
|
||||||
this._connectionDialog.resetConnection();
|
this._connectionDialog.resetConnection();
|
||||||
this._connecting = false;
|
this._connecting = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user