Skip to content
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

Explore exporting a Rails engine to provide an API for the LSP #365

Closed
vinistock opened this issue Nov 14, 2022 · 1 comment
Closed

Explore exporting a Rails engine to provide an API for the LSP #365

vinistock opened this issue Nov 14, 2022 · 1 comment

Comments

@vinistock
Copy link
Member

vinistock commented Nov 14, 2022

If we expose a Rails engine from the Ruby LSP, we can add APIs for applications that opt-in to mounting the engine and use it from the Ruby LSP if the server is running.

From the engine, we can expose any sort of development information interesting to surface in the editor. Some ideas:

  • Auto-reload when saving files
  • Displaying column information for models
  • Highlighting Active Record queries that do not use an index
  • Jump from a controller action to its corresponding route (think like go to definition)

We can also take advantage that the application is already running to execute things in-process. For example, we can expose an action to execute a rake task. Invoking the rake task from an already loaded application is bound to be faster than starting a fresh Ruby process from the CLI.

Concerns

If the user is debugging code, it has the potential to get the LSP stuck.

@vinistock
Copy link
Member Author

Will be addressed in #587.

vinistock pushed a commit that referenced this issue Feb 28, 2024
…pt-eslint/parser-5.50.0

Bump @typescript-eslint/parser from 5.49.0 to 5.50.0
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

No branches or pull requests

1 participant