From 0101e6ff5ba649657c3f4f3f6ddf53920bbb9235 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 9 May 2024 16:49:15 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20remove=20unnecessary=20migration?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/config/load.ts | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/core/config/load.ts b/core/config/load.ts index a697a5b02..f138f9622 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -41,7 +41,6 @@ import { getConfigJsonPathForRemote, getConfigTsPath, getContinueDotEnv, - migrate, } from "../util/paths"; import { defaultContextProvidersJetBrains, @@ -97,34 +96,6 @@ function loadSerializedConfig( config.allowAnonymousTelemetry = true; } - migrate("codeContextProvider", () => { - if (!config.contextProviders?.filter((cp) => cp.name === "code")?.length) { - config.contextProviders = [ - ...(config.contextProviders || []), - { - name: "code", - params: {}, - }, - ]; - } - - fs.writeFileSync(configPath, JSON.stringify(config, undefined, 2), "utf8"); - }); - - migrate("docsContextProvider1", () => { - if (!config.contextProviders?.filter((cp) => cp.name === "docs")?.length) { - config.contextProviders = [ - ...(config.contextProviders || []), - { - name: "docs", - params: {}, - }, - ]; - } - - fs.writeFileSync(configPath, JSON.stringify(config, undefined, 2), "utf8"); - }); - if (remoteConfigServerUrl) { try { const remoteConfigJson = resolveSerializedConfig(