diff options
| author | Adam <[email protected]> | 2026-01-22 19:57:51 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-01-22 22:12:12 -0600 |
| commit | 82f718b3cfd19cd79171d240851e29127c9d8077 (patch) | |
| tree | d3cc51b08038409e23dd75d660addff75b4a9860 /packages/app/src/context | |
| parent | 0eb523631d6b321960ecbc3893a74d3df086a5d7 (diff) | |
| download | opencode-82f718b3cfd19cd79171d240851e29127c9d8077.tar.gz opencode-82f718b3cfd19cd79171d240851e29127c9d8077.zip | |
wip(app): line selection
Diffstat (limited to 'packages/app/src/context')
| -rw-r--r-- | packages/app/src/context/prompt.tsx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/packages/app/src/context/prompt.tsx b/packages/app/src/context/prompt.tsx index 40baa0ef5..6b9d5cc0d 100644 --- a/packages/app/src/context/prompt.tsx +++ b/packages/app/src/context/prompt.tsx @@ -122,14 +122,12 @@ function createPromptSession(dir: string, id: string | undefined) { prompt: Prompt cursor?: number context: { - activeTab: boolean items: (ContextItem & { key: string })[] } }>({ prompt: clonePrompt(DEFAULT_PROMPT), cursor: undefined, context: { - activeTab: true, items: [], }, }), @@ -157,14 +155,7 @@ function createPromptSession(dir: string, id: string | undefined) { cursor: createMemo(() => store.cursor), dirty: createMemo(() => !isPromptEqual(store.prompt, DEFAULT_PROMPT)), context: { - activeTab: createMemo(() => store.context.activeTab), items: createMemo(() => store.context.items), - addActive() { - setStore("context", "activeTab", true) - }, - removeActive() { - setStore("context", "activeTab", false) - }, add(item: ContextItem) { const key = keyForItem(item) if (store.context.items.find((x) => x.key === key)) return @@ -243,10 +234,7 @@ export const { use: usePrompt, provider: PromptProvider } = createSimpleContext( cursor: () => session().cursor(), dirty: () => session().dirty(), context: { - activeTab: () => session().context.activeTab(), items: () => session().context.items(), - addActive: () => session().context.addActive(), - removeActive: () => session().context.removeActive(), add: (item: ContextItem) => session().context.add(item), remove: (key: string) => session().context.remove(key), }, |
