mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 08:09:51 +00:00
chore: generate
This commit is contained in:
parent
98ea5b6e7e
commit
4c3e65c877
1 changed files with 2 additions and 1 deletions
|
|
@ -142,7 +142,8 @@ export const { use: useEditorContext, provider: EditorContextProvider } = create
|
|||
const message = parseMessage(event.data)
|
||||
if (!message) return
|
||||
|
||||
const selection = message.method === "selection_changed" ? EditorSelectionSchema.safeParse(message.params) : undefined
|
||||
const selection =
|
||||
message.method === "selection_changed" ? EditorSelectionSchema.safeParse(message.params) : undefined
|
||||
if (selection?.success) {
|
||||
setStore("selection", selection.data)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue