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

custom LSP requests #611

Merged
merged 5 commits into from
Nov 13, 2022
Merged

custom LSP requests #611

merged 5 commits into from
Nov 13, 2022

Conversation

aspeddro
Copy link
Contributor

I was writing some handlers in Neovim for createInterface and openCompiled. Methods names use the same format to register commands in vscode e.g rescript-vscode.open_compiled

Rename methods names, following LSP spec:

  • rescript-vscode.open_compiled => textDocument/openCompiled
  • rescript-vscode.create_interface => textDocument/createInterface

Response changes:

  • textDocument/openCompiled now return uri file scheme
  • textDocument/createInterface now return the path of the file, so that I can open the file after creation

@zth
Copy link
Collaborator

zth commented Oct 26, 2022

This is nice! I'll review soon.

@zth
Copy link
Collaborator

zth commented Oct 31, 2022

Did you test all of this in VSCode again after making the changes?

@aspeddro
Copy link
Contributor Author

Yes

Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you! Sorry for being so slow on reviewing.

@zth
Copy link
Collaborator

zth commented Nov 13, 2022

@aspeddro would you resolve the merge conflict? Then we're ready to go.

@zth zth merged commit 3e2076e into rescript-lang:master Nov 13, 2022
@aspeddro aspeddro deleted the custom-lsp-requests branch December 19, 2022 17:26
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

Successfully merging this pull request may close these issues.

2 participants