MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / showCodeActions

Function showCodeActions

src/lib/selectionMenu.js:15–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13};
14
15const 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
29const items = [];
30

Callers 1

selectionMenuFunction · 0.85

Calls 2

supportsCodeActionsFunction · 0.85
showCodeActionsMenuFunction · 0.85

Tested by

no test coverage detected