Switch query events to just send ranges instead of full query text (#19823)

* Switch query events to just send ranges instead of full query text

* undo azdata changes

* fix type

* comment + remove unneeded ?
This commit is contained in:
Charles Gagnon
2022-06-24 15:43:40 -07:00
committed by GitHub
parent 34f32e6564
commit ed5a64f80f
8 changed files with 69 additions and 78 deletions

View File

@@ -1542,7 +1542,7 @@ declare module 'azdata' {
}
export namespace queryeditor {
export interface IQueryMessage {
export interface QueryMessage {
/**
* The message string
*/
@@ -1560,15 +1560,15 @@ declare module 'azdata' {
/**
* Information about a query that was executed
*/
export interface IQueryInfo {
export interface QueryInfo {
/**
* Any messages that have been received from the query provider
*/
messages: IQueryMessage[];
messages: QueryMessage[];
/**
* The text of the query statement
* The ranges for each batch that has executed so far
*/
queryText?: string;
range: vscode.Range[];
}
export interface QueryEventListener {
@@ -1584,7 +1584,7 @@ declare module 'azdata' {
* visualize: ResultSetSummary (the result set to be visualized)
* @param queryInfo The information about the query that triggered this event
*/
onQueryEvent(type: QueryEventType, document: QueryDocument, args: ResultSetSummary | string | undefined, queryInfo: IQueryInfo): void;
onQueryEvent(type: QueryEventType, document: QueryDocument, args: ResultSetSummary | string | undefined, queryInfo: QueryInfo): void;
}
}
}