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

Function nextSignature

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

Source from the content-addressed store, hash-verified

772};
773
774export const nextSignature: Command = (view) => {
775 const field = view.state.field(signatureState, false);
776 if (!field) return false;
777 if (field.active < field.data.signatures.length - 1) {
778 view.dispatch({
779 effects: signatureEffect.of({
780 data: field.data,
781 active: field.active + 1,
782 pos: field.tooltip.pos,
783 }),
784 });
785 }
786 return true;
787};
788
789export const prevSignature: Command = (view) => {
790 const field = view.state.field(signatureState, false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected