Remove preview checks from ep (#21008)

This commit is contained in:
Aasim Khan
2022-10-27 10:05:16 -07:00
committed by GitHub
parent 540ebd6f7f
commit 512eba5675
5 changed files with 11 additions and 10 deletions

View File

@@ -17,8 +17,6 @@ import { ResultSetSubset } from 'sql/workbench/services/query/common/query';
import { isUndefined } from 'vs/base/common/types';
import { ILogService } from 'vs/platform/log/common/log';
import * as nls from 'vs/nls';
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
import { CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES } from 'sql/workbench/common/constants';
export const SERVICE_ID = 'queryManagementService';
@@ -123,7 +121,6 @@ export class QueryManagementService implements IQueryManagementService {
@IConnectionManagementService private _connectionService: IConnectionManagementService,
@IAdsTelemetryService private _telemetryService: IAdsTelemetryService,
@ILogService private _logService: ILogService,
@IConfigurationService private _configurationService: IConfigurationService
) {
}
@@ -337,7 +334,7 @@ export class QueryManagementService implements IQueryManagementService {
public onResultSetUpdated(resultSetInfo: azdata.QueryExecuteResultSetNotificationParams): void {
this._notify(resultSetInfo.ownerUri, (runner: QueryRunner) => {
runner.handleResultSetUpdated(resultSetInfo.resultSetSummary);
if (resultSetInfo.executionPlans && this._configurationService.getValue<boolean>(CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES)) {
if (resultSetInfo.executionPlans) {
runner.handleExecutionPlanAvailable(resultSetInfo.executionPlans);
}
});