mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fixing issue that caused moving connections from one group to other to throw (#23933)
This commit is contained in:
@@ -1431,13 +1431,11 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._connectionStatusManager.changeConnectionUri(newUri, oldUri);
|
this._connectionStatusManager.changeConnectionUri(newUri, oldUri);
|
||||||
if (!this._uriToProvider[oldUri]) {
|
if (this._uriToProvider[oldUri]) {
|
||||||
this._logService.error(`No provider found for old URI : '${oldUri}'`);
|
// Provider will persist after disconnect, it is okay to overwrite the map if it exists from a previously deleted connection.
|
||||||
throw new Error(nls.localize('connectionManagementService.noProviderForUri', 'Could not find provider for uri: {0}', oldUri));
|
this._uriToProvider[newUri] = this._uriToProvider[oldUri];
|
||||||
|
delete this._uriToProvider[oldUri];
|
||||||
}
|
}
|
||||||
// Provider will persist after disconnect, it is okay to overwrite the map if it exists from a previously deleted connection.
|
|
||||||
this._uriToProvider[newUri] = this._uriToProvider[oldUri];
|
|
||||||
delete this._uriToProvider[oldUri];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user