File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
extensions/ql-vscode/src/remote-queries Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -35,17 +35,19 @@ export interface QlPack {
3535 */
3636const QUERY_PACK_NAME = 'codeql-remote/query' ;
3737
38+ export interface GeneratedQueryPack {
39+ base64Pack : string ,
40+ language : string
41+ }
42+
3843/**
3944 * Two possibilities:
4045 * 1. There is no qlpack.yml in this directory. Assume this is a lone query and generate a synthetic qlpack for it.
4146 * 2. There is a qlpack.yml in this directory. Assume this is a query pack and use the yml to pack the query before uploading it.
4247 *
4348 * @returns the entire qlpack as a base64 string.
4449 */
45- async function generateQueryPack ( cliServer : cli . CodeQLCliServer , queryFile : string , queryPackDir : string ) : Promise < {
46- base64Pack : string ,
47- language : string
48- } > {
50+ async function generateQueryPack ( cliServer : cli . CodeQLCliServer , queryFile : string , queryPackDir : string ) : Promise < GeneratedQueryPack > {
4951 const originalPackRoot = await findPackRoot ( queryFile ) ;
5052 const packRelativePath = path . relative ( originalPackRoot , queryFile ) ;
5153 const targetQueryFileName = path . join ( queryPackDir , packRelativePath ) ;
@@ -226,7 +228,7 @@ export async function prepareRemoteQueryRun(
226228
227229 const { remoteQueryDir, queryPackDir } = await createRemoteQueriesTempDirectory ( ) ;
228230
229- let pack : Awaited < ReturnType < typeof generateQueryPack > > ;
231+ let pack : GeneratedQueryPack ;
230232
231233 try {
232234 pack = await generateQueryPack ( cliServer , queryFile , queryPackDir ) ;
You can’t perform that action at this time.
0 commit comments