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

Understanding the executeCommand workflow #381

Closed
sanbox-irl opened this issue Jul 26, 2018 · 2 comments
Closed

Understanding the executeCommand workflow #381

sanbox-irl opened this issue Jul 26, 2018 · 2 comments

Comments

@sanbox-irl
Copy link

Hi,

Apologies if this is the wrong place to ask this, but the documentation is not clear on this. I'm trying to add a command to the VSCode Command Palette (or any other similar set up). I understand that the command "lives" client side, and simply when the user invokes it, the server picks it up and can respond on executeCommand. That works fine. But I want, when the user invokes the command, for a dialogue box (similar to a Git commit asking you for your username and password) to pop up and ask for additional information.

It seems, on the face of it, to be connection.sendRequest but I'm unsure how to use it, and the documentation, such as it is, around it is unclear.

Any help pointing me in the right direction would be appreciated.

@Gama11
Copy link
Contributor

Gama11 commented Jul 26, 2018

You might want to create some custom methods?

https://stackoverflow.com/questions/51041337/vscode-language-client-extension-how-to-send-a-message-from-the-server-to-the

@sanbox-irl
Copy link
Author

Hmm. That's kind of unfortunate -- that really chains the LSP to a specific client. Thanks though!

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants