mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -05:00
Adding Execution Plan Editor to ADS (#18696)
* Pushing Execution Plan Editor * Renaming class Handling error * Awaiting for handlers to be registered * Addressing some PR comments * Fixing return type for provider * Fixing editor id and removing unnecessary overrides * Adding a namespace * adding execution plan namespace * Adding protocol comment * Fixing if logic * Fixing error message * Cleaning up code * cleanup code * Adding help comments * Fixing method call * Using path.ts to get the base file name * converting to lambda functions * Adding comment for run action * Fixing pr comments * Fixing editor label * Fixing doc comments * Adding some more comments * Fixign branding in comments
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import type * as azdata from 'azdata';
|
||||
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
|
||||
|
||||
export const SERVICE_ID = 'executionPlanService';
|
||||
|
||||
export const IExecutionPlanService = createDecorator<IExecutionPlanService>(SERVICE_ID);
|
||||
|
||||
export interface IExecutionPlanService {
|
||||
_serviceBrand: undefined;
|
||||
|
||||
/**
|
||||
* Registers an execution plan service provider.
|
||||
*/
|
||||
registerProvider(providerId: string, provider: azdata.executionPlan.ExecutionPlanProvider): void;
|
||||
/**
|
||||
* Gets an execution plan for the given planFile.
|
||||
*/
|
||||
getExecutionPlan(planFile: azdata.executionPlan.ExecutionPlanGraphInfo): Promise<azdata.executionPlan.GetExecutionPlanResult>;
|
||||
|
||||
/**
|
||||
* Get execution plan file extensions supported by the provider.
|
||||
*/
|
||||
getSupportedExecutionPlanExtensionsForProvider(providerId: string): string[];
|
||||
}
|
||||
Reference in New Issue
Block a user