mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
Adds functionality to open execution plans from DB tables and DMVs. (#20377)
* Adds functionality to open execution plans from DB tables and DMVs. * Code review changes * Renames method to getProviderFromUri
This commit is contained in:
@@ -42,6 +42,7 @@ export interface IQueryManagementService {
|
||||
getRegisteredProviders(): string[];
|
||||
registerRunner(runner: QueryRunner, uri: string): void;
|
||||
getRunner(uri: string): QueryRunner | undefined;
|
||||
getProviderIdFromUri(uri: string): string;
|
||||
|
||||
cancelQuery(ownerUri: string): Promise<QueryCancelResult>;
|
||||
runQuery(ownerUri: string, range?: IRange, runOptions?: ExecutionPlanOptions): Promise<void>;
|
||||
@@ -149,6 +150,10 @@ export class QueryManagementService implements IQueryManagementService {
|
||||
return this._queryRunners.get(uri);
|
||||
}
|
||||
|
||||
public getProviderIdFromUri(uri: string): string {
|
||||
return this._connectionService.getProviderIdFromUri(uri);
|
||||
}
|
||||
|
||||
// Handles logic to run the given handlerCallback at the appropriate time. If the given runner is
|
||||
// undefined, the handlerCallback is put on the _handlerCallbackQueue to be run once the runner is set
|
||||
// public for testing only
|
||||
|
||||
Reference in New Issue
Block a user