How to set JsonSerializer settings for Visual Studio Language Service? #812
Unanswered
CalvinAllen
asked this question in
Q&A
Replies: 1 comment 6 replies
-
What is the type of this |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Long story short -
Visual Studio extension with a custom language server running out of proc (node). We've been (trying) to add support for VS 2022, and as such, upgraded a lot of the dependencies including JsonRpc/etc.
For 2017/2019, we had to set a custom contract resolver / null handling by accessing the
JsonSerializer
off of the RPC instance we're handed - something like -With the upgrades, that
JsonSerializer
instance is no longer publicly accessible. I understand (I think) that we need to use aJsonMessageFormatter
and set it up through that - however, I can't figure out how to utilize it since the instance ofJsonRpc
is handed to us through theILanguageClient
interfaces and services.What am I missing? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions