mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 17:22:48 -05:00
QueryEvent range -> batchRanges (#19890)
* Switch query events to just send ranges instead of full query text * undo azdata changes * fix type * comment + remove unneeded ? * range -> batchRanges * undo
This commit is contained in:
@@ -36,7 +36,7 @@ export class QueryHistoryProvider implements vscode.TreeDataProvider<QueryHistor
|
||||
return;
|
||||
}
|
||||
// Combine all the text from the batches back together
|
||||
const queryText = queryInfo.range.map(r => textDocument.getText(r) ?? '').join(EOL);
|
||||
const queryText = queryInfo.batchRanges.map(r => textDocument.getText(r) ?? '').join(EOL);
|
||||
const connProfile = await azdata.connection.getConnection(document.uri);
|
||||
const isError = queryInfo.messages.find(m => m.isError) ? false : true;
|
||||
// Add to the front of the list so the new item appears at the top
|
||||
|
||||
Reference in New Issue
Block a user