Merge pull request #2766 from github/starcke/rename-ff

Rename feature flags.
This commit is contained in:
Anders Starcke Henriksen
2023-09-01 10:35:28 +02:00
committed by GitHub
3 changed files with 8 additions and 11 deletions

View File

@@ -1430,7 +1430,7 @@
},
{
"command": "codeQL.openModelEditor",
"when": "config.codeQL.canary && config.codeQL.dataExtensions.editor"
"when": "config.codeQL.canary && config.codeQL.model.editor"
},
{
"command": "codeQLQueries.runLocalQueryContextMenu",

View File

@@ -705,16 +705,13 @@ export function showQueriesPanel(): boolean {
return !!QUERIES_PANEL.getValue<boolean>();
}
const DATA_EXTENSIONS = new Setting("dataExtensions", ROOT_SETTING);
const LLM_GENERATION = new Setting("llmGeneration", DATA_EXTENSIONS);
const MODEL_SETTING = new Setting("model", ROOT_SETTING);
const LLM_GENERATION = new Setting("llmGeneration", MODEL_SETTING);
const DISABLE_AUTO_NAME_EXTENSION_PACK = new Setting(
"disableAutoNameExtensionPack",
DATA_EXTENSIONS,
);
const EXTENSIONS_DIRECTORY = new Setting(
"extensionsDirectory",
DATA_EXTENSIONS,
MODEL_SETTING,
);
const EXTENSIONS_DIRECTORY = new Setting("extensionsDirectory", MODEL_SETTING);
export function showLlmGeneration(): boolean {
return !!LLM_GENERATION.getValue<boolean>();

View File

@@ -164,7 +164,7 @@ describe("pickExtensionPack", () => {
section?: string,
scope?: ConfigurationScope | null,
): VSCodeWorkspaceConfiguration => {
expect(section).toEqual("codeQL.dataExtensions");
expect(section).toEqual("codeQL.model");
expect((scope as any)?.languageId).toEqual("java");
return {
@@ -205,7 +205,7 @@ describe("pickExtensionPack", () => {
section?: string,
scope?: ConfigurationScope | null,
): VSCodeWorkspaceConfiguration => {
expect(section).toEqual("codeQL.dataExtensions");
expect(section).toEqual("codeQL.model");
expect((scope as any)?.languageId).toEqual("java");
return {
@@ -311,7 +311,7 @@ describe("pickExtensionPack", () => {
section?: string,
scope?: ConfigurationScope | null,
): VSCodeWorkspaceConfiguration => {
expect(section).toEqual("codeQL.dataExtensions");
expect(section).toEqual("codeQL.model");
expect((scope as any)?.languageId).toEqual("java");
return {