Skip to content

Commit dab67f1

Browse files
committed
Implement "open query directory" for variant analysis history items
1 parent 57ee00e commit dab67f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/ql-vscode/src/query-history.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,8 @@ export class QueryHistoryManager extends DisposableObject {
911911
}
912912
} else if (queryHistoryItem.t === 'remote') {
913913
return path.join(this.queryStorageDir, queryHistoryItem.queryId);
914+
} else if (queryHistoryItem.t === 'variant-analysis') {
915+
return this.variantAnalysisManager.getVariantAnalysisStorageLocation(queryHistoryItem.variantAnalysis.id);
914916
}
915917

916918
throw new Error('Unable to get query directory');
@@ -933,6 +935,8 @@ export class QueryHistoryManager extends DisposableObject {
933935
}
934936
} else if (finalSingleItem.t === 'remote') {
935937
externalFilePath = path.join(this.queryStorageDir, finalSingleItem.queryId, 'timestamp');
938+
} else if (finalSingleItem.t === 'variant-analysis') {
939+
externalFilePath = path.join(this.variantAnalysisManager.getVariantAnalysisStorageLocation(finalSingleItem.variantAnalysis.id), 'timestamp');
936940
}
937941

938942
if (externalFilePath) {

0 commit comments

Comments
 (0)