(selection: EditorSelection | undefined)
| 145 | const pending = new Map<number, string>() |
| 146 | |
| 147 | const setSelection = (selection: EditorSelection | undefined) => { |
| 148 | const changed = editorSelectionKey(selection) !== editorSelectionKey(store.selection) |
| 149 | setStore("selection", selection) |
| 150 | if (changed) setStore("selectionSent", false) |
| 151 | } |
| 152 | |
| 153 | const clearSelectionForReconnect = (options?: { resetZedSelectionKey?: boolean }) => { |
| 154 | if (preserveSelectionOnReconnect) { |
no test coverage detected