fixed the issue with opening none SQL editor for predict script (#10693)

This commit is contained in:
Leila Lali
2020-06-03 10:56:30 -07:00
committed by GitHub
parent f7c3484438
commit fb9ca4c021

View File

@@ -83,7 +83,7 @@ export class PredictService {
language: 'sql', language: 'sql',
content: query content: query
}); });
await this._apiWrapper.showTextDocument(document.uri); await this._apiWrapper.executeCommand('vscode.open', document.uri);
await this._apiWrapper.connect(document.uri.toString(), connection.connectionId); await this._apiWrapper.connect(document.uri.toString(), connection.connectionId);
this._apiWrapper.runQuery(document.uri.toString(), undefined, false); this._apiWrapper.runQuery(document.uri.toString(), undefined, false);
return query; return query;