-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Closed
Labels
apiapi-proposaleditor-parameter-hintsFunction, method and class parameter hint widgetFunction, method and class parameter hint widget
Description
Problem
Some signature help providers need to know why they are triggered. See microsoft/TypeScript#24915 for more details on one use case
Proposal
Pass the triggerCharacter
to the provideSignatureHelp
call. This could be introduced in a context
parameter at the end of the parameter list:
export interface SignatureHelpContext {
triggerCharacter?: string;
}
export interface SignatureHelpProvider {
provideSignatureHelp(document: TextDocument, position: Position, token: CancellationToken, context: SignatureHelpContext): ProviderResult<SignatureHelp>;
}
KamasamaK
Metadata
Metadata
Labels
apiapi-proposaleditor-parameter-hintsFunction, method and class parameter hint widgetFunction, method and class parameter hint widget