-
Notifications
You must be signed in to change notification settings - Fork 463
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
racket-langserver
LSP support for Racket
#1828
Comments
can the https://github.com/zed-industries/zed/tree/main/extensions/clojure be used as a starting point? |
I tried implementing this by copying the racket extension from the zed main repo, adding a Cargo.toml and a racket.rs that implements |
Only what is in the readme https://github.com/jeapostrophe/racket-langserver?tab=readme-ov-file#racket-langserver |
I had the same issue when I tried changing the extension to support the lsp server. Tangentially, the syntax highlighting for racket code is pretty poor. The treesitter syntax supports complex forms like match, match-define etc, but the the syntax definitions on Zed's side are very bare bones. Racket is not just brackets, tokens, and whitespace! |
I more meant on the Zed side of things, rather than the Racket language server side. I tried using the command to restart the language server, but it didn't seem to do anything. I'm wondering if the built-in extension for Racket support is taking precedence over my dev extension for handling .rkt files... |
Ah! After some fiddling, I got it to work. I needed this in my extension.toml file:
And the "Racket" in the square brackets had to be capitalized. I'm still not entirely sure where the name it has to match is defined. Maybe it's the Name field in languages/racket/config.toml? Anyway, as soon as I figure out a slightly less hard-coded way to locate the racket binary I'll throw this in a repo and make a pull request. |
I've submitted a pull request: #1857 |
Check for existing issues
Describe the feature
Hi. Thanks for all the phenomenal work on this editor. The Racket programming language has an LSP called
racket-langserver
. It would be very nice and useful if the official Racket extension in Zed could support this LSP.If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: