| 170 | |
| 171 | // Define a minimal interface to satisfy TypeScript |
| 172 | interface CodeSpaceViewInterface { |
| 173 | file: TFile | null; |
| 174 | editorView?: { |
| 175 | state: { |
| 176 | doc: { |
| 177 | line(lineNum: number): { from: number; to: number }; |
| 178 | }; |
| 179 | }; |
| 180 | dispatch(transaction: { |
| 181 | selection: { anchor: number; head: number }; |
| 182 | effects?: unknown[]; |
| 183 | scrollIntoView?: boolean; |
| 184 | }): void; |
| 185 | }; |
| 186 | } |
| 187 | |
| 188 | let targetLeaf = leaves.find(leaf => { |
| 189 | const view = leaf.view as unknown as CodeSpaceViewInterface; |
nothing calls this directly
no outgoing calls
no test coverage detected