-
Notifications
You must be signed in to change notification settings - Fork 28
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
Configurable runner for LSP backend #389
Comments
This is required until Shopify#389 is resolved.
@louim how should we be providing configurations to the rails lsp app? |
Thank you for the feature proposal. I'm curious, are you connecting VS Code to the container already? Here are the docs. I expected that if VS Code was already connected to the container, then running |
@vinistock I would also be interested in the possibility of swapping the run command. Our project use a custom
|
The usual way of configuring things for language servers would be through editor settings. Indeed, shared configurations would happen through something like VS Code's workspace settings ( The benefit is that deferring to editors for configuration allows them to provide a nicer experience. For example, VS Code will merge your user settings with the workspace settings for the current project you're working on, so you can both get project-wide defaults with your own preferences. Regarding configuring Ruby LSP addons, we discussed this briefly within the team and I think the ideal solution would be to have a flexible object based on addon names. There's no way to know ahead of time which addons the developer may have installed, so we need the flexibility. I'm thinking something like this: // Your user/workspace settings
{
"rubyLsp.addons": {
"Ruby LSP Rails": {
"serverCommand": "bin/dev"
}
}
} The server would then delegate the configurations to the right addons based on their unique names. We still need to implement this though, but if you're willing to take a stab at it we can definitely help with the details. |
This is required until Shopify#389 is resolved.
This is required until Shopify#389 is resolved.
This is required until Shopify#389 is resolved.
Is anyone actively working on this? I can take the Ruby LSP configuration propagation and the Rails LSP design for the configuration. @vinistock are you able to create an issue in the Ruby LSP repo? It would be useful to know any constraints you may have in mind for the addon config system. |
I put up a PR for the first step of this, which is generally allowing addons to be configured by editor settings. After that is shipped and released, the steps to conclude the work are:
|
Getting fairly busy but will return to this soon (< 1 month). |
This is required until Shopify#389 is resolved.
This is required until Shopify#389 is resolved.
This is required until Shopify#389 is resolved.
This is required until Shopify#389 is resolved.
We'd like to be able to configure the runner to support different ways of running the
server.rb
file.This is specifically important because our rails code runs inside Kubernetes containers while we develop. Running the Rails LSP on the local machine will come with massive efforts. We'd need to be able to support something like
cool-tool exec <container> -- bundle exec rails runner server.rb
.Tasks
The text was updated successfully, but these errors were encountered: