Address comments.
This commit is contained in:
@@ -55,7 +55,7 @@ export async function runAutoModelQueries({
|
||||
cancellationTokenSource,
|
||||
}: AutoModelQueriesOptions): Promise<AutoModelQueriesResult | undefined> {
|
||||
// First, resolve the query that we want to run.
|
||||
const queryPath = await resolveAutomodelQueries(
|
||||
const queryPath = await resolveAutomodelQuery(
|
||||
cliServer,
|
||||
databaseItem,
|
||||
"candidates",
|
||||
@@ -121,7 +121,7 @@ export async function runAutoModelQueries({
|
||||
};
|
||||
}
|
||||
|
||||
async function resolveAutomodelQueries(
|
||||
async function resolveAutomodelQuery(
|
||||
cliServer: CodeQLCliServer,
|
||||
databaseItem: DatabaseItem,
|
||||
queryTag: string,
|
||||
@@ -223,8 +223,7 @@ async function interpretAutomodelResults(
|
||||
"results.sarif",
|
||||
);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- We only need the actual SARIF data, not the extra fields added by SarifInterpretationData
|
||||
const { t, sortState, ...sarif } = await interpretResultsSarif(
|
||||
const { ...sarif } = await interpretResultsSarif(
|
||||
cliServer,
|
||||
metadata,
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ import { telemetryListener } from "../common/vscode/telemetry";
|
||||
import { redactableError } from "../common/errors";
|
||||
import { basename } from "path";
|
||||
|
||||
type RunQueriesOptions = {
|
||||
type RunQueryOptions = {
|
||||
cliServer: CodeQLCliServer;
|
||||
queryRunner: QueryRunner;
|
||||
databaseItem: DatabaseItem;
|
||||
@@ -33,7 +33,7 @@ export async function runQuery({
|
||||
extensionPacks,
|
||||
progress,
|
||||
token,
|
||||
}: RunQueriesOptions): Promise<CoreCompletedQuery | undefined> {
|
||||
}: RunQueryOptions): Promise<CoreCompletedQuery | undefined> {
|
||||
// Create a lock file for the query. This is required to resolve dependencies and library path for the query.
|
||||
const { cleanup: cleanupLockFile } = await createLockFileForStandardQuery(
|
||||
cliServer,
|
||||
|
||||
Reference in New Issue
Block a user