MCPcopy Index your code
hub / github.com/anomalyco/opencode / open

Function open

packages/app/src/context/server.tsx:77–81  ·  view source on GitHub ↗
(directory: string)

Source from the content-addressed store, hash-verified

75 return {
76 list: current,
77 open(directory: string) {
78 const scope = input.scope()
79 if (current().some((project) => project.worktree === directory)) return
80 setStore("projects", scope, [{ worktree: directory, expanded: true }, ...current()])
81 },
82 close(directory: string) {
83 setStore(
84 "projects",

Callers

nothing calls this directly

Calls 2

setStoreFunction · 0.85
currentFunction · 0.70

Tested by

no test coverage detected