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

Function showSignatureHelp

src/cm/lsp/tooltipExtensions.ts:751–772  ·  view source on GitHub ↗
(view)

Source from the content-addressed store, hash-verified

749);
750
751export const showSignatureHelp: Command = (view) => {
752 let plugin = view.plugin(signaturePlugin);
753 if (!plugin) {
754 view.dispatch({
755 effects: StateEffect.appendConfig.of([signatureState, signaturePlugin]),
756 });
757 plugin = view.plugin(signaturePlugin);
758 }
759
760 const field = view.state.field(signatureState);
761 if (!plugin || field === undefined) return false;
762
763 const lspPlugin = LSPPlugin.get(view);
764 if (!lspPlugin) return false;
765
766 plugin.startRequest(lspPlugin, {
767 triggerKind: 1,
768 activeSignatureHelp: field ? field.data : undefined,
769 isRetrigger: !!field,
770 });
771 return true;
772};
773
774export const nextSignature: Command = (view) => {
775 const field = view.state.field(signatureState, false);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
startRequestMethod · 0.45

Tested by

no test coverage detected