Skip to content

Conversation

@gerau
Copy link
Contributor

@gerau gerau commented Nov 18, 2025

fixes #169

This button appears if the user is missing the simplicityhl-lsp executable. It spawns the cargo install simplicityhl-lsp and shows progress notification for compiling.
This also updates the LSP installation method in the README and changes the Learn more link to point to this repository instead of the old one.

@gerau gerau marked this pull request as ready for review November 18, 2025 15:47
@gerau gerau requested a review from imaginator as a code owner November 18, 2025 15:48
@KyrylR KyrylR marked this pull request as draft November 18, 2025 16:01
@imaginator
Copy link
Collaborator

I'm curious - how do other LSPs get installed and started?
Would it be possible to do this without prompting the user? Or just start it and run it in the background?

@gerau
Copy link
Contributor Author

gerau commented Nov 18, 2025

I checked, and it seems like popular languages install the language server automatically, while others, require separate installation. I was actually inspired by rust-analyzer, which requires rustup and the rust-analyzer extension to be installed.

But yeah, we can launch this in the background and install the server without prompting the user.

@imaginator
Copy link
Collaborator

I like the idea of it being available to other editors.

But if we can make it seamless to the end user on VSCode, I see no reason to not launch it automatically.

Copy link
Collaborator

@imaginator imaginator left a comment

Choose a reason for hiding this comment

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

besides the line 60 let vs const, this looks good.

@gerau
Copy link
Contributor Author

gerau commented Nov 19, 2025

glad to hear it!
should I restructure the commits so this feature is just a single commit?

@KyrylR
Copy link
Collaborator

KyrylR commented Nov 19, 2025

For the context:

Go to references is broken, pls take a look

UPD: comment resolved

previously, restarting the server after uninstalling `simplicityhl-lsp`
caused an error, because the extension attempted to launch a missing executable.

this change ensures that server is checking that this executable is
present and install otherwise.
Installing the server via `cargo` overrides the local installation,
even if it has a higher version.
This is problematic if we want to test the LSP server inside VSCode, so
now there option in settings to disable autoupdate.
Co-authored-by: Kyrylo Riabov <kyryl.ryabov@gmail.com>
@KyrylR KyrylR marked this pull request as ready for review November 19, 2025 11:50
@KyrylR
Copy link
Collaborator

KyrylR commented Nov 19, 2025

ACK 237deb5

Installed and verified extension locally

@KyrylR KyrylR merged commit 999b3ee into BlockstreamResearch:master Nov 19, 2025
14 checks passed
@gerau gerau deleted the dev branch November 19, 2025 12:43
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.

LSP code isn't starting

3 participants