mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 01:32:34 -05:00
optional database name option (#17538)
* optional database name option * object explorer connection title * revert unexpected change * bug fixes
This commit is contained in:
@@ -791,6 +791,11 @@ export class ListDatabasesActionItem extends Disposable implements IActionViewIt
|
||||
}
|
||||
|
||||
private updateConnection(databaseName: string): void {
|
||||
// Ignore if the database name is not provided, this happens when the query editor connection is changed to
|
||||
// a provider that does not support database.
|
||||
if (!databaseName) {
|
||||
return;
|
||||
}
|
||||
this._isConnected = true;
|
||||
this._currentDatabaseName = databaseName;
|
||||
// Set the value immediately to the initial database so the user can see that, and then
|
||||
|
||||
Reference in New Issue
Block a user