Rename to additionalRunQueryArgs

This commit is contained in:
Dave Bartolomeo
2023-10-09 11:04:22 -04:00
parent 9e26c29ddb
commit d4cbfbb70e
5 changed files with 9 additions and 5 deletions

View File

@@ -110,6 +110,10 @@
"string"
],
"description": "Names of extension packs to include in the evaluation. These are resolved from the locations specified in `additionalPacks`."
},
"additionalRunQueryArgs": {
"type": "object",
"description": "**Internal use only**. Additional arguments to pass to the `runQuery` command of the query server, without validation."
}
}
}

View File

@@ -22,7 +22,7 @@ export interface QLDebugArgs {
extensionPacks?: string[] | string;
quickEval?: boolean;
noDebug?: boolean;
additionalArgs?: Record<string, any>;
additionalRunQueryArgs?: Record<string, any>;
}
/**
@@ -121,7 +121,7 @@ export class QLDebugConfigurationProvider
extensionPacks,
quickEvalContext,
noDebug: qlConfiguration.noDebug ?? false,
additionalArgs: qlConfiguration.additionalArgs ?? {},
additionalRunQueryArgs: qlConfiguration.additionalRunQueryArgs ?? {},
};
return resultConfiguration;

View File

@@ -71,7 +71,7 @@ export interface LaunchConfig {
/** Run the query without debugging it. */
noDebug: boolean;
/** Undocumented: Additional arguments to be passed to the `runQuery` API on the query server. */
additionalArgs: Record<string, any>;
additionalRunQueryArgs: Record<string, any>;
}
export interface LaunchRequest extends Request, DebugProtocol.LaunchRequest {

View File

@@ -161,7 +161,7 @@ class RunningQuery extends DisposableObject {
true,
config.additionalPacks,
config.extensionPacks,
config.additionalArgs,
config.additionalRunQueryArgs,
queryStorageDir,
undefined,
undefined,

View File

@@ -187,7 +187,7 @@ describeWithCodeQL()("Debugger", () => {
await controller.startDebugging(
{
query: quickEvalQueryPath,
additionalArgs: {
additionalRunQueryArgs: {
// Overrides the value passed to the query server
queryPath: simpleQueryPath,
},