Skip to content
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

How to use sendRequest #194

Closed
Tracked by #922
houdaM97 opened this issue Jul 8, 2019 · 2 comments
Closed
Tracked by #922

How to use sendRequest #194

houdaM97 opened this issue Jul 8, 2019 · 2 comments
Assignees

Comments

@houdaM97
Copy link

houdaM97 commented Jul 8, 2019

Hi,
I want to provide a function in client side that calls a function implemented in the server side using sendRequest function, what is the signature of sendRequest and how can i get the result from the function of server side by sendRequest function?

@dbaeumer
Copy link
Member

dbaeumer commented Jul 9, 2019

sendRequest allows you to send a JSON RPC request. The result comes in the returned promise. Here is an example on how to use it: https://github.com/Microsoft/vscode-lsif-extension/blob/master/client/src/extension.ts#L169

@dbaeumer dbaeumer closed this as completed Jul 9, 2019
@RomanMIzulin
Copy link

Could someone add example of using sendRequest to this repo, because IMHO it is basic case for developing LSP extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants