Corrected Keyboard Shortcut Execution Issue (#5480)

This commit is contained in:
Stephen
2019-05-14 17:41:12 -05:00
committed by Kevin Cunnane
parent 48ba9ce175
commit a718fb3cae
3 changed files with 4 additions and 0 deletions

View File

@@ -210,6 +210,7 @@ export class QueryManagementService implements IQueryManagementService {
});
}
public runQueryString(ownerUri: string, queryString: string): Thenable<void> {
this.addTelemetry(TelemetryKeys.RunQueryString, ownerUri);
return this._runAction(ownerUri, (runner) => {
return runner.runQueryString(ownerUri, queryString);
});

View File

@@ -197,6 +197,8 @@ export default class QueryRunner extends Disposable {
this._isExecuting = true;
this._totalElapsedMilliseconds = 0;
this._onQueryStart.fire();
return this._queryManagementService.runQueryString(this.uri, input).then(() => this.handleSuccessRunQueryResult(), e => this.handleFailureRunQueryResult(e));
} else {
return Promise.reject('Unknown input');

View File

@@ -20,6 +20,7 @@ export const ChartCreated = 'ChartCreated';
export const ObjectExplorerExpand = 'ObjectExplorerExpand';
export const RunQuery = 'RunQuery';
export const RunQueryStatement = 'RunQueryStatement';
export const RunQueryString = 'RunQueryString';
export const CancelQuery = 'CancelQuery';
export const NewQuery = 'NewQuery';
export const FirewallRuleRequested = 'FirewallRuleCreated';