MCPcopy Create free account
hub / github.com/continuedev/continue / saveHistory

Method saveHistory

extensions/cli/src/util/inputHistory.ts:40–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 private saveHistory(): void {
41 try {
42 const dir = path.dirname(HISTORY_FILE);
43 if (!fs.existsSync(dir)) {
44 fs.mkdirSync(dir, { recursive: true });
45 }
46
47 fs.writeFileSync(HISTORY_FILE, JSON.stringify(this.history, null, 2));
48 } catch (error) {
49 console.error("Failed to save input history:", error);
50 }
51 }
52
53 addEntry(text: string): void {
54 if (!text.trim()) return;

Callers 2

addEntryMethod · 0.95
clearHistoryMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected