Skip to content

LSP progress reporting support #1080

Answered by AArnott
estrizhok asked this question in Q&A
Sep 24, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

You appear to be mixing things up with your UseSingleObjectParameterDeserialization = true setting. This works when the server method takes exactly one parameter. Yours takes two: (Data d, IProgress<WorkDoneProgress> pi).

Your client is sending a message that expects the server to define a method that takes two parameters named Prop and WorkDoneToken. Because your server method sets UseSingleObjectParameterDeserialization = true, the server will apply the typical LSP-deviation from the JSON-RPC spec and consider those named arguments to instead be properties on an object that is passed to the only parameter on the server method. But you have two parameters on it. The pi parameter does no…

Replies: 1 comment 4 replies

Comment options

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

@AArnott
Comment options

Answer selected by estrizhok
@estrizhok
Comment options

@AArnott
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