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)
|
const message = parseMessage(event.data)
|
||||||
if (!message) return
|
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) {
|
if (selection?.success) {
|
||||||
setStore("selection", selection.data)
|
setStore("selection", selection.data)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue