🔥 remove unnecessary migrations

This commit is contained in:
Nate Sesti 2024-05-09 16:49:15 -07:00
parent 1f493973ca
commit 0101e6ff5b

View file

@ -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(