continue-custom/extensions/vscode/src/util/cleanSlate.ts

20 lines
629 B
TypeScript

import fs from "fs";
import { getContinueGlobalPath } from "core/util/paths";
import { ExtensionContext } from "vscode";
/**
* Clear all Continue-related artifacts to simulate a brand new user
*/
export function cleanSlate(context: ExtensionContext) {
// Commented just to be safe
// // Remove ~/.continue
// const continuePath = getContinueGlobalPath();
// if (fs.existsSync(continuePath)) {
// fs.rmSync(continuePath, { recursive: true, force: true });
// }
// // Clear extension's globalState
// context.globalState.keys().forEach((key) => {
// context.globalState.update(key, undefined);
// });
}