-
Notifications
You must be signed in to change notification settings - Fork 184
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
Added solidity language server setup guide #2383
Conversation
docs/src/language_servers.md
Outdated
1. Install [github:NomicFoundation/hardhat-vscode](https://github.com/NomicFoundation/hardhat-vscode/tree/development/server) (follow instructions in the repo): | ||
|
||
2. Open `Preferences > Package Settings > LSP > Settings` and add the `"solidity"` client configuration to the `"clients"`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing the user also has to install some syntax for "solidity"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by "some syntax"? Installing specific solidity version is not required, nomic language server is capable of working with multiple solidity versions out of the box, as far as I can tell, but I will also double-check that just in case
There are also multiple toolkits as hardhat/foundry/... but it also looks like nomic language server is capable of figuring it out on itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The source.solidity
scope used for "selector"
is not built-in from Sublime Text, so you would need to have the according syntax package from Package Control installed to make the language server start. The other config examples on this page link to the syntax packages.
docs/src/language_servers.md
Outdated
@@ -627,6 +627,23 @@ Follow installation instructions on [LSP-metals](https://github.com/scalameta/me | |||
} | |||
``` | |||
|
|||
### Solidity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is under the "Shell" programming language section. Use 2 hashes if it's a separate programming language.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, my bad, will fix 👍
Co-authored-by: Rafał Chłodnicki <rchl2k@gmail.com>
✅ Deploy Preview for sublime-lsp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
and sorry for the wait.
Description
Just added a quick guide how to make LSP package to work with solidity, I've also tried to make solc lsp to work, but hardhat-vscode feels much more suitable and easier to set up.
Demo