Skip to content

Commit 025ec25

Browse files
committed
Convert autogenerateQlPacks to use enum
1 parent 6034105 commit 025ec25

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

extensions/ql-vscode/package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,22 @@
345345
"type": "string",
346346
"default": "",
347347
"patternErrorMessage": "Please enter a valid folder",
348-
"markdownDescription": "The name of the folder where we want to create queries and query packs via the \"CodeQL: Create Query\" command. The folder should exist."
348+
"markdownDescription": "The name of the folder where we want to create queries and QL packs via the \"CodeQL: Create Query\" command. The folder should exist."
349349
},
350350
"codeQL.createQuery.autogenerateQlPacks": {
351351
"type": "string",
352-
"default": "",
353-
"patternErrorMessage": "Please choose between 'Yes', 'No' and 'No, and never ask me again'",
354-
"markdownDescription": "The choice of whether to autogenerate QL packs for the current workspace. The choice is 'Yes', 'No' or 'No, and never ask me again'."
352+
"default": "ask",
353+
"enum": [
354+
"ask",
355+
"yes",
356+
"never"
357+
],
358+
"enumDescriptions": [
359+
"Ask each time a new local CodeQL database is added.",
360+
"Always automatically create a QL pack if one does not already exist.",
361+
"Never automatically create a QL pack."
362+
],
363+
"description": "Should a QL pack be created when downloading a CodeQL database and a QL pack does not already exist."
355364
}
356365
}
357366
},

0 commit comments

Comments
 (0)