Add back the evaluation results to CompletedQuery

This ensures that queries created by new versions of the extension
can still be read by older versions of the extension.
This commit is contained in:
Andrew Eisenberg
2022-09-13 13:46:19 -07:00
parent c6531a293e
commit 6335b9881b
2 changed files with 5 additions and 1 deletions

View File

@@ -418,7 +418,8 @@ export async function compileAndRunQueryAgainstDatabase(
return {
query: query.queryEvalInfo,
message: message,
message,
result,
sucessful: result.resultType == messages.QueryResultType.SUCCESS,
logFileLocation: result.logFileLocation,
dispose: () => {

View File

@@ -83,6 +83,9 @@ export class CompletedQueryInfo implements QueryWithResults {
) {
this.query = evaluation.query;
this.logFileLocation = evaluation.logFileLocation;
if (evaluation.result) {
this.result = evaluation.result;
}
this.message = evaluation.message;
this.sucessful = evaluation.sucessful;
// Use the dispose method from the evaluation.