Elffuss BraidHub

kikocis/continue public

main · 629 BRawPermalink
1import fs from "fs";
2
3import { getContinueGlobalPath } from "core/util/paths";
4import { ExtensionContext } from "vscode";
5
6/**
7 * Clear all Continue-related artifacts to simulate a brand new user
8 */
9export function cleanSlate(context: ExtensionContext) {
10 // Commented just to be safe
11 // // Remove ~/.continue
12 // const continuePath = getContinueGlobalPath();
13 // if (fs.existsSync(continuePath)) {
14 // fs.rmSync(continuePath, { recursive: true, force: true });
15 // }
16 // // Clear extension's globalState
17 // context.globalState.keys().forEach((key) => {
18 // context.globalState.update(key, undefined);
19 // });
20}