Skip to content

Commit d4cbfbb

Browse files
author
Dave Bartolomeo
committed
Rename to additionalRunQueryArgs
1 parent 9e26c29 commit d4cbfbb

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

extensions/ql-vscode/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
"string"
111111
],
112112
"description": "Names of extension packs to include in the evaluation. These are resolved from the locations specified in `additionalPacks`."
113+
},
114+
"additionalRunQueryArgs": {
115+
"type": "object",
116+
"description": "**Internal use only**. Additional arguments to pass to the `runQuery` command of the query server, without validation."
113117
}
114118
}
115119
}

extensions/ql-vscode/src/debugger/debug-configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface QLDebugArgs {
2222
extensionPacks?: string[] | string;
2323
quickEval?: boolean;
2424
noDebug?: boolean;
25-
additionalArgs?: Record<string, any>;
25+
additionalRunQueryArgs?: Record<string, any>;
2626
}
2727

2828
/**
@@ -121,7 +121,7 @@ export class QLDebugConfigurationProvider
121121
extensionPacks,
122122
quickEvalContext,
123123
noDebug: qlConfiguration.noDebug ?? false,
124-
additionalArgs: qlConfiguration.additionalArgs ?? {},
124+
additionalRunQueryArgs: qlConfiguration.additionalRunQueryArgs ?? {},
125125
};
126126

127127
return resultConfiguration;

extensions/ql-vscode/src/debugger/debug-protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export interface LaunchConfig {
7171
/** Run the query without debugging it. */
7272
noDebug: boolean;
7373
/** Undocumented: Additional arguments to be passed to the `runQuery` API on the query server. */
74-
additionalArgs: Record<string, any>;
74+
additionalRunQueryArgs: Record<string, any>;
7575
}
7676

7777
export interface LaunchRequest extends Request, DebugProtocol.LaunchRequest {

extensions/ql-vscode/src/debugger/debug-session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class RunningQuery extends DisposableObject {
161161
true,
162162
config.additionalPacks,
163163
config.extensionPacks,
164-
config.additionalArgs,
164+
config.additionalRunQueryArgs,
165165
queryStorageDir,
166166
undefined,
167167
undefined,

extensions/ql-vscode/test/vscode-tests/cli-integration/debugger/debugger.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ describeWithCodeQL()("Debugger", () => {
187187
await controller.startDebugging(
188188
{
189189
query: quickEvalQueryPath,
190-
additionalArgs: {
190+
additionalRunQueryArgs: {
191191
// Overrides the value passed to the query server
192192
queryPath: simpleQueryPath,
193193
},

0 commit comments

Comments
 (0)