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

Function prevSignature

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

Source from the content-addressed store, hash-verified

787};
788
789export const prevSignature: Command = (view) => {
790 const field = view.state.field(signatureState, false);
791 if (!field) return false;
792 if (field.active > 0) {
793 view.dispatch({
794 effects: signatureEffect.of({
795 data: field.data,
796 active: field.active - 1,
797 pos: field.tooltip.pos,
798 }),
799 });
800 }
801 return true;
802};
803
804export const signatureKeymap: readonly KeyBinding[] = [
805 { key: "Mod-Shift-Space", run: showSignatureHelp },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected