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 @@ -46,17 +46,19 @@ export interface QlPack {
4646 */
4747const QUERY_PACK_NAME = 'codeql-remote/query' ;
4848
49+ export interface GeneratedQueryPack {
50+ base64Pack : string ,
51+ language : string
52+ }
53+
4954/**
5055 * Two possibilities:
5156 * 1. There is no qlpack.yml in this directory. Assume this is a lone query and generate a synthetic qlpack for it.
5257 * 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.
5358 *
5459 * @returns the entire qlpack as a base64 string.
5560 */
56- async function generateQueryPack ( cliServer : cli . CodeQLCliServer , queryFile : string , queryPackDir : string ) : Promise < {
57- base64Pack : string ,
58- language : string
59- } > {
61+ async function generateQueryPack ( cliServer : cli . CodeQLCliServer , queryFile : string , queryPackDir : string ) : Promise < GeneratedQueryPack > {
6062 const originalPackRoot = await findPackRoot ( queryFile ) ;
6163 const packRelativePath = path . relative ( originalPackRoot , queryFile ) ;
6264 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