MCPcopy Index your code
hub / github.com/continuedev/continue / editConfigFile

Function editConfigFile

core/util/paths.ts:279–290  ·  view source on GitHub ↗
(
  configJsonCallback: (
    config: SerializedContinueConfig,
  ) => SerializedContinueConfig,
  configYamlCallback: (config: ConfigYaml) => ConfigYaml,
)

Source from the content-addressed store, hash-verified

277}
278
279export function editConfigFile(
280 configJsonCallback: (
281 config: SerializedContinueConfig,
282 ) => SerializedContinueConfig,
283 configYamlCallback: (config: ConfigYaml) => ConfigYaml,
284): void {
285 if (fs.existsSync(getConfigYamlPath())) {
286 editConfigYaml(configYamlCallback);
287 } else if (fs.existsSync(getConfigJsonPath())) {
288 editConfigJson(configJsonCallback);
289 }
290}
291
292function getMigrationsFolderPath(): string {
293 const migrationsPath = path.join(getContinueGlobalPath(), ".migrations");

Callers 8

addToConfigMethod · 0.90
deleteFromConfigMethod · 0.90
addModelFunction · 0.90
deleteModelFunction · 0.90
runSqliteMigrationsFunction · 0.85

Calls 4

getConfigYamlPathFunction · 0.85
editConfigYamlFunction · 0.85
getConfigJsonPathFunction · 0.85
editConfigJsonFunction · 0.85

Tested by

no test coverage detected