diff options
| author | Aiden Cline <[email protected]> | 2025-10-19 18:42:34 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-19 18:42:34 -0500 |
| commit | 5d3a88f34fcc1b4c1f0abe91226bbf2619c2b7a4 (patch) | |
| tree | 07b7f63191b98302ab030cb91c0200a350cb4c72 | |
| parent | e47edfffe4e8ef5578b8690657fc76f2edc61a92 (diff) | |
| download | opencode-5d3a88f34fcc1b4c1f0abe91226bbf2619c2b7a4.tar.gz opencode-5d3a88f34fcc1b4c1f0abe91226bbf2619c2b7a4.zip | |
fix: snapshot undo bug (#3290)
| -rw-r--r-- | packages/opencode/src/project/bootstrap.ts | 2 | ||||
| -rw-r--r-- | packages/opencode/src/snapshot/index.ts | 14 |
2 files changed, 0 insertions, 16 deletions
diff --git a/packages/opencode/src/project/bootstrap.ts b/packages/opencode/src/project/bootstrap.ts index b636cb3ea..c7805aa7a 100644 --- a/packages/opencode/src/project/bootstrap.ts +++ b/packages/opencode/src/project/bootstrap.ts @@ -2,7 +2,6 @@ import { Plugin } from "../plugin" import { Share } from "../share/share" import { Format } from "../format" import { LSP } from "../lsp" -import { Snapshot } from "../snapshot" import { FileWatcher } from "../file/watcher" import { File } from "../file" import { Flag } from "../flag/flag" @@ -13,7 +12,6 @@ export async function InstanceBootstrap() { Share.init() Format.init() LSP.init() - Snapshot.init() FileWatcher.init() File.init() } diff --git a/packages/opencode/src/snapshot/index.ts b/packages/opencode/src/snapshot/index.ts index 3cd464acf..beeab48c0 100644 --- a/packages/opencode/src/snapshot/index.ts +++ b/packages/opencode/src/snapshot/index.ts @@ -10,20 +10,6 @@ import { Instance } from "../project/instance" export namespace Snapshot { const log = Log.create({ service: "snapshot" }) - export function init() { - Array.fromAsync( - new Bun.Glob("**/snapshot").scan({ - absolute: true, - onlyFiles: false, - cwd: Global.Path.data, - }), - ).then((files) => { - for (const file of files) { - fs.rmdir(file, { recursive: true }) - } - }) - } - export async function track() { if (Instance.project.vcs !== "git") return const cfg = await Config.get() |
