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

Function supportsCodeActions

src/cm/lsp/codeActions.ts:367–370  ·  view source on GitHub ↗
(view: EditorView)

Source from the content-addressed store, hash-verified

365}
366
367export function supportsCodeActions(view: EditorView): boolean {
368 const plugin = LSPPlugin.get(view);
369 return !!plugin?.client.serverCapabilities?.codeActionProvider;
370}
371
372export async function showCodeActionsMenu(view: EditorView): Promise<boolean> {
373 if (!supportsCodeActions(view)) return false;

Callers 2

showCodeActionsFunction · 0.85
showCodeActionsMenuFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected