Skip to content

Commit 0836307

Browse files
committed
Rename feature flags.
1 parent e61f619 commit 0836307

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

extensions/ql-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@
14161416
},
14171417
{
14181418
"command": "codeQL.openModelEditor",
1419-
"when": "config.codeQL.canary && config.codeQL.dataExtensions.editor"
1419+
"when": "config.codeQL.canary && config.codeQL.model.editor"
14201420
},
14211421
{
14221422
"command": "codeQLQueries.runLocalQueryContextMenu",

extensions/ql-vscode/src/config.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -702,16 +702,13 @@ export function showQueriesPanel(): boolean {
702702
return !!QUERIES_PANEL.getValue<boolean>();
703703
}
704704

705-
const DATA_EXTENSIONS = new Setting("dataExtensions", ROOT_SETTING);
706-
const LLM_GENERATION = new Setting("llmGeneration", DATA_EXTENSIONS);
705+
const MODEL_SETTING = new Setting("model", ROOT_SETTING);
706+
const LLM_GENERATION = new Setting("llmGeneration", MODEL_SETTING);
707707
const DISABLE_AUTO_NAME_EXTENSION_PACK = new Setting(
708708
"disableAutoNameExtensionPack",
709-
DATA_EXTENSIONS,
710-
);
711-
const EXTENSIONS_DIRECTORY = new Setting(
712-
"extensionsDirectory",
713-
DATA_EXTENSIONS,
709+
MODEL_SETTING,
714710
);
711+
const EXTENSIONS_DIRECTORY = new Setting("extensionsDirectory", MODEL_SETTING);
715712

716713
export function showLlmGeneration(): boolean {
717714
return !!LLM_GENERATION.getValue<boolean>();

extensions/ql-vscode/test/vscode-tests/no-workspace/model-editor/extension-pack-picker.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe("pickExtensionPack", () => {
164164
section?: string,
165165
scope?: ConfigurationScope | null,
166166
): VSCodeWorkspaceConfiguration => {
167-
expect(section).toEqual("codeQL.dataExtensions");
167+
expect(section).toEqual("codeQL.model");
168168
expect((scope as any)?.languageId).toEqual("java");
169169

170170
return {
@@ -205,7 +205,7 @@ describe("pickExtensionPack", () => {
205205
section?: string,
206206
scope?: ConfigurationScope | null,
207207
): VSCodeWorkspaceConfiguration => {
208-
expect(section).toEqual("codeQL.dataExtensions");
208+
expect(section).toEqual("codeQL.model");
209209
expect((scope as any)?.languageId).toEqual("java");
210210

211211
return {
@@ -311,7 +311,7 @@ describe("pickExtensionPack", () => {
311311
section?: string,
312312
scope?: ConfigurationScope | null,
313313
): VSCodeWorkspaceConfiguration => {
314-
expect(section).toEqual("codeQL.dataExtensions");
314+
expect(section).toEqual("codeQL.model");
315315
expect((scope as any)?.languageId).toEqual("java");
316316

317317
return {

0 commit comments

Comments
 (0)