Skip to content

Commit 8bf8adf

Browse files
committed
Fix default query for skeleton pack
We mark this query as `@kind problem`. We'll need to change the query a bit to make it fit this type of ... erm... kind. This means the results view will be formatted to display the file name next to each of the results. We're also getting rid of any mentions of an empty block query since that's no longer what it checks.
1 parent 14f58df commit 8bf8adf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

extensions/ql-vscode/src/qlpack-generator.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,16 @@ export class QlPackGenerator {
7272
const exampleQl = `
7373
/**
7474
* This is an automatically generated file
75-
* @name Empty block
75+
* @name Hello world
7676
* @kind problem
7777
* @problem.severity warning
78-
* @id ${this.queryLanguage}/example/empty-block
78+
* @id ${this.queryLanguage}/example/hello-world
7979
*/
8080
8181
import ${this.queryLanguage}
8282
83-
select "Hello, world!"
83+
from File f
84+
select f, "Hello, world!"
8485
`.trim();
8586

8687
await writeFile(exampleQlFilePath, exampleQl, "utf8");

0 commit comments

Comments
 (0)