Skip to content

Commit c38937f

Browse files
committed
$ tapioca gem
1 parent f093d7a commit c38937f

File tree

3 files changed

+41
-75
lines changed

3 files changed

+41
-75
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ See the [documentation](https://shopify.github.io/ruby-lsp-rails) for more in-de
5454

5555
When Ruby LSP Rails starts, it spawns a `rails runner` instance which runs
5656
`[server.rb](https://github.com/Shopify/ruby-lsp-rails/blob/main/lib/ruby_lsp/ruby_lsp_rails/server.rb)`.
57-
The addon communicates with this process over a pipe (i.e. stdin/stdout) to fetch runtime information about the Rails application.
57+
The addon communicates with this process over a pipe (i.e. `stdin` and `stdout`) to fetch runtime information about the application.
58+
59+
When extension is stopped (e.g. by quitting the editor), the server instance is shut down.
5860

5961
## Contributing
6062

lib/ruby_lsp/ruby_lsp_rails/server.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def start
6868
when "shutdown"
6969
running = false
7070
VOID
71+
when "reload"
72+
# TODO: would this be a valid approach?
73+
::Rails.application.reloader.reload!
74+
VOID
7175
when "model"
7276
resolve_database_info_from_model(params.fetch(:name))
7377
else
Lines changed: 34 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)