Skip to content

Commit 4beead5

Browse files
committed
Fix file extension of generated query suite
See github/codeql-core#452
1 parent 7379f49 commit 4beead5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/ql-vscode/src/definitions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ function nameOfKeyType(keyType: KeyType): string {
4242
}
4343

4444
async function resolveQueries(cli: CodeQLCliServer, qlpack: string, keyType: KeyType): Promise<string[]> {
45-
const suiteFile = (await tmp.file()).path;
45+
const suiteFile = (await tmp.file({
46+
postfix: '.qls'
47+
})).path;
4648
const suiteYaml = { qlpack, include: { kind: 'definitions', 'tags contain': tagOfKeyType(keyType) } };
4749
await fs.writeFile(suiteFile, yaml.safeDump(suiteYaml), 'utf8');
4850

0 commit comments

Comments
 (0)