@@ -12,7 +12,6 @@ import { promisify } from 'util';
1212import { CancellationToken , Disposable } from 'vscode' ;
1313
1414import { BQRSInfo , DecodedBqrsChunk } from './pure/bqrs-cli-types' ;
15- import * as config from './config' ;
1615import { CliConfig } from './config' ;
1716import { DistributionProvider , FindDistributionResultKind } from './distribution' ;
1817import { assertNever } from './pure/helpers-pure' ;
@@ -597,10 +596,10 @@ export class CodeQLCliServer implements Disposable {
597596
598597 async runInterpretCommand ( format : string , metadata : QueryMetadata , resultsPath : string , interpretedResultsPath : string , sourceInfo ?: SourceInfo ) {
599598 const args = [
600- `-t=kind=${ metadata . kind } ` ,
601- `-t=id=${ metadata . id } ` ,
602599 '--output' , interpretedResultsPath ,
603600 '--format' , format ,
601+ // Forward all of the query metadata.
602+ ...Object . entries ( metadata ) . map ( ( [ key , value ] ) => `-t=${ key } =${ value } ` )
604603 ] ;
605604 if ( format == SARIF_FORMAT ) {
606605 // TODO: This flag means that we don't group interpreted results
@@ -609,9 +608,6 @@ export class CodeQLCliServer implements Disposable {
609608 // grouping client-side.
610609 args . push ( '--no-group-results' ) ;
611610 }
612- if ( config . isCanary ( ) && metadata . scored !== undefined ) {
613- args . push ( `-t=scored=${ metadata . scored } ` ) ;
614- }
615611 if ( sourceInfo !== undefined ) {
616612 args . push (
617613 '--source-archive' , sourceInfo . sourceArchive ,
0 commit comments