mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Fix saved queries opening in plain text editor (#18096)
This commit is contained in:
@@ -435,8 +435,8 @@ export class QueryModelService implements IQueryModelService {
|
||||
// Get existing query runner
|
||||
let queryRunner = this.internalGetQueryRunner(oldUri);
|
||||
if (!queryRunner) {
|
||||
this._logService.error(`A Query and QueryRunner was not found for '${oldUri}'`);
|
||||
throw new Error(nls.localize('queryModelService.noQueryFoundForUri', 'No Query found for {0}', oldUri));
|
||||
// Nothing to do if we don't have a query runner currently (no connection)
|
||||
return;
|
||||
}
|
||||
else if (this._queryInfoMap.has(newUri)) {
|
||||
this._logService.error(`New URI '${newUri}' already has query info associated with it.`);
|
||||
|
||||
Reference in New Issue
Block a user