Skip to content

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
Member

zth commented Oct 26, 2022

This is nice! I'll review soon.

@zth
Copy link
Member

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
Member

@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
Member

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