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

Function migrateV1DevDataFiles

core/util/paths.ts:441–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

439}
440
441export function migrateV1DevDataFiles() {
442 const devDataPath = getDevDataPath();
443 function moveToV1FolderIfExists(
444 oldFileName: string,
445 newFileName: DevEventName,
446 ) {
447 const oldFilePath = path.join(devDataPath, `${oldFileName}.jsonl`);
448 if (fs.existsSync(oldFilePath)) {
449 const newFilePath = getDevDataFilePath(newFileName, "0.1.0");
450 if (!fs.existsSync(newFilePath)) {
451 fs.copyFileSync(oldFilePath, newFilePath);
452 fs.unlinkSync(oldFilePath);
453 }
454 }
455 }
456 moveToV1FolderIfExists("tokens_generated", "tokensGenerated");
457 moveToV1FolderIfExists("chat", "chatFeedback");
458 moveToV1FolderIfExists("quickEdit", "quickEdit");
459 moveToV1FolderIfExists("autocomplete", "autocomplete");
460}
461
462export function getLocalEnvironmentDotFilePath(): string {
463 return path.join(getContinueGlobalPath(), ".local");

Callers 1

constructorMethod · 0.90

Calls 2

getDevDataPathFunction · 0.85
moveToV1FolderIfExistsFunction · 0.85

Tested by

no test coverage detected