Add Query Editor API to sqlops.proposed (#1196)

* add support query editor API

* remove sqlops.proposed.d.ts in sp_whoIsActive

* address comments

* add catch error when connect
This commit is contained in:
Abbie Petchtes
2018-04-23 13:42:27 -07:00
committed by GitHub
parent b30f7ee41c
commit 965458ca74
12 changed files with 1143 additions and 33 deletions

View File

@@ -333,4 +333,23 @@ declare module 'sqlops' {
}
}
}
/**
* Namespace for interacting with query editor
*/
export namespace queryeditor {
/**
* Make connection for the query editor
* @param {string} fileUri file URI for the query editor
* @param {string} connectionId connection ID
*/
export function connect(fileUri: string, connectionId: string): Thenable<void>;
/**
* Run query if it is a query editor and it is already opened.
* @param {string} fileUri file URI for the query editor
*/
export function runQuery(fileUri: string): void;
}
}