-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Test: serialization and deserialization using lsprotocol
#19544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The code example works fine but I'm blocked on testing this more fully because I can't get python debugging working. I've selected the venv but f5 complains that it can't find |
@mjbvz Does the extension show that you have the right environment selected? |
@karrtikr Looks like in Matt's case |
Thanks @karthiknadig for the help! We were able to figure out I tested a few types and they all seemed to work. Was a little confused how to use enums at first before realizing I could use |
Uh oh!
There was an error while loading. Please reload this page.
Refs: #19300
Complexity: 2
Create Issue
lsprotocol
is Python implementation of LSP types generated from published LSP model. In this test scenario you will installlsprotocol
and try serializing and deserializing few types. Thelsprotocol
types in python were generated from https://github.com/microsoft/vscode-languageserver-node/blob/main/protocol/metaModel.jsonRequirements
Steps
python -m venv .venv
lsprotocol
:python -m pip install lsprotocol
types
andconverters
and try to structure (deserialize) and unstructure (serialize) code. See example below.Pick some request, notification, or structure and try the following. In this example I use
Diagnostic
structure.The text was updated successfully, but these errors were encountered: