mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
* Add openQueryDocument API
* Remove open call
* Change try name
(cherry picked from commit a0f46fec65)
This commit is contained in:
@@ -80,11 +80,7 @@ export class PredictService {
|
||||
predictParams.outputColumns || [],
|
||||
predictParams);
|
||||
}
|
||||
let document = await this._apiWrapper.openTextDocument({
|
||||
language: 'sql',
|
||||
content: query
|
||||
});
|
||||
await this._apiWrapper.executeCommand('vscode.open', document.uri);
|
||||
const document = await azdata.queryeditor.openQueryDocument({ content: query });
|
||||
await this._apiWrapper.connect(document.uri.toString(), connection.connectionId);
|
||||
this._apiWrapper.runQuery(document.uri.toString(), undefined, false);
|
||||
return query;
|
||||
|
||||
Reference in New Issue
Block a user