File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed
extensions/ql-vscode/src/data-extensions-editor Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ import { join } from "path";
1919import { assertNever } from "../common/helpers-pure" ;
2020
2121type AutoModelQueryOptions = {
22+ queryTag : string ;
23+ mode : Mode ;
2224 cliServer : CodeQLCliServer ;
2325 queryRunner : QueryRunner ;
2426 databaseItem : DatabaseItem ;
@@ -42,21 +44,19 @@ function modeTag(mode: Mode): string {
4244 }
4345}
4446
45- async function runAutoModelQuery (
46- mode : Mode ,
47- queryTag : string ,
48- {
49- cliServer,
50- queryRunner,
51- databaseItem,
52- qlpack,
53- sourceInfo,
54- extensionPacks,
55- queryStorageDir,
56- progress,
57- token,
58- } : AutoModelQueryOptions ,
59- ) : Promise < Sarif . Log | undefined > {
47+ async function runAutoModelQuery ( {
48+ queryTag,
49+ mode,
50+ cliServer,
51+ queryRunner,
52+ databaseItem,
53+ qlpack,
54+ sourceInfo,
55+ extensionPacks,
56+ queryStorageDir,
57+ progress,
58+ token,
59+ } : AutoModelQueryOptions ) : Promise < Sarif . Log | undefined > {
6060 // First, resolve the query that we want to run.
6161 // All queries are tagged like this:
6262 // internal extract automodel <mode> <queryTag>
@@ -200,7 +200,9 @@ export async function runAutoModelQueries({
200200 message : "Finding candidates and examples" ,
201201 } ) ;
202202
203- const candidates = await runAutoModelQuery ( mode , "candidates" , {
203+ const candidates = await runAutoModelQuery ( {
204+ mode,
205+ queryTag : "candidates" ,
204206 cliServer,
205207 queryRunner,
206208 databaseItem,
You can’t perform that action at this time.
0 commit comments