mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 17:23:35 -05:00
Fix saved queries opening in plain text editor (#18096)
This commit is contained in:
@@ -1157,9 +1157,12 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
}
|
||||
|
||||
/**
|
||||
* Replaces connection info uri with new uri.
|
||||
* Replaces connection info uri with new uri. No-op if the URI does not currently have an associated connection.
|
||||
*/
|
||||
public changeConnectionUri(newUri: string, oldUri: string): void {
|
||||
if (!this._connectionStatusManager.hasConnection(oldUri)) {
|
||||
return;
|
||||
}
|
||||
this._connectionStatusManager.changeConnectionUri(newUri, oldUri);
|
||||
if (!this._uriToProvider[oldUri]) {
|
||||
this._logService.error(`No provider found for old URI : '${oldUri}'`);
|
||||
|
||||
Reference in New Issue
Block a user