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

Function enabled

packages/tui/src/context/editor.ts:322–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 return {
322 enabled() {
323 return Boolean(resolveEditorConnection(directory, port, editor.connection) || (zedTerminal && editor.selection))
324 },
325 connected() {
326 return store.status === "connected"
327 },

Callers 4

BlackSubscribeFunction · 0.50
snapshot.tsFile · 0.50

Calls 1

resolveEditorConnectionFunction · 0.85

Tested by

no test coverage detected