Skip to content

Commit 00905a9

Browse files
committed
Add return type to prepareRemoteQueryRun
1 parent 5905cf8 commit 00905a9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

extensions/ql-vscode/src/remote-queries/run-remote-query.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,25 @@ async function getPackedBundlePath(queryPackDir: string) {
187187
});
188188
}
189189

190+
export interface PreparedRemoteQuery {
191+
actionBranch: string;
192+
base64Pack: string;
193+
repoSelection: RepositorySelection;
194+
queryFile: string;
195+
queryMetadata: QueryMetadata | undefined;
196+
controllerRepo: Repository;
197+
queryStartTime: number;
198+
language: string;
199+
}
200+
190201
export async function prepareRemoteQueryRun(
191202
cliServer: cli.CodeQLCliServer,
192203
credentials: Credentials,
193204
uri: Uri | undefined,
194205
queryPackDir: string,
195206
progress: ProgressCallback,
196207
token: CancellationToken,
197-
) {
208+
): Promise<PreparedRemoteQuery> {
198209
if (!(await cliServer.cliConstraints.supportsRemoteQueries())) {
199210
throw new Error(`Variant analysis is not supported by this version of CodeQL. Please upgrade to v${cli.CliVersionConstraint.CLI_VERSION_REMOTE_QUERIES
200211
} or later.`);

0 commit comments

Comments
 (0)