diff --git a/extensions/ql-vscode/src/definitions.ts b/extensions/ql-vscode/src/definitions.ts index 5fd588aeb..a7369b749 100644 --- a/extensions/ql-vscode/src/definitions.ts +++ b/extensions/ql-vscode/src/definitions.ts @@ -42,7 +42,9 @@ function nameOfKeyType(keyType: KeyType): string { } async function resolveQueries(cli: CodeQLCliServer, qlpack: string, keyType: KeyType): Promise { - const suiteFile = (await tmp.file()).path; + const suiteFile = (await tmp.file({ + postfix: '.qls' + })).path; const suiteYaml = { qlpack, include: { kind: 'definitions', 'tags contain': tagOfKeyType(keyType) } }; await fs.writeFile(suiteFile, yaml.safeDump(suiteYaml), 'utf8');