()
| 13 | }; |
| 14 | |
| 15 | const showCodeActions = async () => { |
| 16 | const { editor } = editorManager; |
| 17 | if (!editor) return; |
| 18 | |
| 19 | try { |
| 20 | const { showCodeActionsMenu, supportsCodeActions } = await import("cm/lsp"); |
| 21 | if (supportsCodeActions(editor)) { |
| 22 | await showCodeActionsMenu(editor); |
| 23 | } |
| 24 | } catch (error) { |
| 25 | console.warn("[SelectionMenu] Code actions not available:", error); |
| 26 | } |
| 27 | }; |
| 28 | |
| 29 | const items = []; |
| 30 |
no test coverage detected