Skip to content

Commit 3a09f18

Browse files
committed
fix: mono log comparison view start
1 parent 73b6605 commit 3a09f18

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

extensions/ql-vscode/src/extension.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,9 +1225,14 @@ async function showPerformanceComparison(
12251225
const fromLog = from?.evalutorLogPaths?.jsonSummary;
12261226
const toLog = to.evalutorLogPaths?.jsonSummary;
12271227

1228-
if (fromLog === undefined || toLog === undefined) {
1228+
if (from && fromLog === undefined) {
12291229
return extLogger.showWarningMessage(
1230-
`Cannot compare performance as the structured logs are missing. Did they queries complete normally?`,
1230+
`Cannot compare performance as the "from" structured logs are missing. Did they queries complete normally?`,
1231+
);
1232+
}
1233+
if (toLog === undefined) {
1234+
return extLogger.showWarningMessage(
1235+
`Cannot compare performance as the "to" structured logs are missing. Did they queries complete normally?`,
12311236
);
12321237
}
12331238
if (from) {

0 commit comments

Comments
 (0)