-
Notifications
You must be signed in to change notification settings - Fork 0
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
LSP2LSIF #73
Comments
Debugging with The plugin in turn is (expand)
|
The import requests
from requests_lsp import LSPAdapter
session = requests.Session()
session.mount("lsp://", LSPAdapter())
response = session.get("lsp://127.0.0.1:9084", json={"id":"1", "method": "initialize"})
print(response.json()) Adapter should save connection between calls, provide |
This turned out to be a raw socket implementation, which doesn't really shares much with `requests-curl`, except for initial layout. I didn't implement any syntax sugar, such as "id" increments etc., because it will make sent JSON dependent on this specific library. Maybe in future, but for now covers my use case of using LSP server to provide LSIF syntax info for my files. yakshaveinc/tasks#73
Working proof of concept for /spent 20h |
I need to troubleshoot failing tests for my Ruby project in GitLab.
Write LSIF indexer that uses existing LSP server
initialize
request. LSP uses JSON-RPC protocol withContent-length
headers and without HTTP methods.lsp://
Transport Plugin tohttpie
(requests
Transport Adapter) for easier debugging from command line*.rb
files usingtextDocument/didOpen
(textDocumentItem)[https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocumentItem]The text was updated successfully, but these errors were encountered: