Skip to content

Commit

Permalink
🔥 remove unnecessary migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed May 9, 2024
1 parent 1f49397 commit 0101e6f
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions core/config/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import {
getConfigJsonPathForRemote,
getConfigTsPath,
getContinueDotEnv,
migrate,
} from "../util/paths";
import {
defaultContextProvidersJetBrains,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 0101e6f

Please sign in to comment.