Skip to content

Constructor for classes #1881

Answered by msujew
ejfasting asked this question in Q&A
Apr 1, 2025 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

I was about to write, that it's likely not a good idea to have different overloads of the same name in the completion. Instead, you can use the LSP SignatureHelpProvider (and AbstractSignatureHelpProvider) to provide all the different overloads of your constructors to the user:

export interface SignatureHelpProvider {
/**
* Handles a signature help request
*/
provideSignatureHelp(document: LangiumDocument, params: SignatureHelpParams, cancelToken?: CancellationToken): MaybePromise<SignatureHelp | undefined>;
/**
* Options that determine the server capabilities…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@msujew
Comment options

Answer selected by ejfasting
@ejfasting
Comment options

@msujew
Comment options

@ejfasting
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants