mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 17:22:55 -05:00
Renaming query plan to execution plan (#18551)
This commit is contained in:
@@ -332,7 +332,7 @@ export class QueryManagementService implements IQueryManagementService {
|
||||
this._notify(resultSetInfo.ownerUri, (runner: QueryRunner) => {
|
||||
runner.handleResultSetUpdated(resultSetInfo.resultSetSummary);
|
||||
if (resultSetInfo.executionPlans && this._configurationService.getValue('workbench.enablePreviewFeatures')) {
|
||||
runner.handleQueryPlan2Available(resultSetInfo.executionPlans);
|
||||
runner.handleExecutionPlanAvailable(resultSetInfo.executionPlans);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export interface IQueryPlanInfo {
|
||||
planXml: string;
|
||||
}
|
||||
|
||||
export interface IQueryPlan2Info {
|
||||
export interface IExecutionPlanInfo {
|
||||
providerId: string;
|
||||
fileUri: string;
|
||||
planGraphs: ExecutionPlanGraph[];
|
||||
|
||||
@@ -352,7 +352,7 @@ export class QueryModelService implements IQueryModelService {
|
||||
this._onQueryEvent.fire(event);
|
||||
});
|
||||
|
||||
queryRunner.onQueryPlan2Available(qp2Info => {
|
||||
queryRunner.onExecutionPlanAvailable(qp2Info => {
|
||||
// fire extensibility API event
|
||||
let event: IQueryEvent = {
|
||||
type: 'executionPlan',
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import { IQueryManagementService, QueryCancelResult, ExecutionPlanOptions } from 'sql/workbench/services/query/common/queryManagement';
|
||||
import * as Utils from 'sql/platform/connection/common/utils';
|
||||
import { Deferred } from 'sql/base/common/promise';
|
||||
import { IQueryPlanInfo, IQueryPlan2Info } from 'sql/workbench/services/query/common/queryModel';
|
||||
import { IQueryPlanInfo, IExecutionPlanInfo } from 'sql/workbench/services/query/common/queryModel';
|
||||
import { ResultSerializer, SaveFormat } from 'sql/workbench/services/query/common/resultSerializer';
|
||||
|
||||
import * as azdata from 'azdata';
|
||||
@@ -73,8 +73,8 @@ export default class QueryRunner extends Disposable {
|
||||
private readonly _onQueryPlanAvailable = this._register(new Emitter<IQueryPlanInfo>());
|
||||
public readonly onQueryPlanAvailable = this._onQueryPlanAvailable.event;
|
||||
|
||||
private readonly _onQueryPlan2Available = this._register(new Emitter<IQueryPlan2Info>());
|
||||
public readonly onQueryPlan2Available = this._onQueryPlan2Available.event;
|
||||
private readonly _onExecutionPlanAvailable = this._register(new Emitter<IExecutionPlanInfo>());
|
||||
public readonly onExecutionPlanAvailable = this._onExecutionPlanAvailable.event;
|
||||
|
||||
private readonly _onVisualize = this._register(new Emitter<ResultSetSummary>());
|
||||
public readonly onVisualize = this._onVisualize.event;
|
||||
@@ -387,12 +387,12 @@ export default class QueryRunner extends Disposable {
|
||||
}
|
||||
}
|
||||
|
||||
public handleQueryPlan2Available(queryPlans: azdata.ExecutionPlanGraph[] | undefined) {
|
||||
if (queryPlans) {
|
||||
this._onQueryPlan2Available.fire({
|
||||
public handleExecutionPlanAvailable(executionPlans: azdata.ExecutionPlanGraph[] | undefined) {
|
||||
if (executionPlans) {
|
||||
this._onExecutionPlanAvailable.fire({
|
||||
providerId: mssqlProviderName,
|
||||
fileUri: this.uri,
|
||||
planGraphs: queryPlans
|
||||
planGraphs: executionPlans
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user