Rename to additionalRunQueryArgs
This commit is contained in:
@@ -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."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -161,7 +161,7 @@ class RunningQuery extends DisposableObject {
|
||||
true,
|
||||
config.additionalPacks,
|
||||
config.extensionPacks,
|
||||
config.additionalArgs,
|
||||
config.additionalRunQueryArgs,
|
||||
queryStorageDir,
|
||||
undefined,
|
||||
undefined,
|
||||
|
||||
@@ -187,7 +187,7 @@ describeWithCodeQL()("Debugger", () => {
|
||||
await controller.startDebugging(
|
||||
{
|
||||
query: quickEvalQueryPath,
|
||||
additionalArgs: {
|
||||
additionalRunQueryArgs: {
|
||||
// Overrides the value passed to the query server
|
||||
queryPath: simpleQueryPath,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user