🔥 remove unnecessary migrations
This commit is contained in:
parent
1f493973ca
commit
0101e6ff5b
1 changed files with 0 additions and 29 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue