Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Apr 26, 2024
1 parent 9f72b96 commit 5c26720
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
run: |
bundle exec rails db:setup
bundle exec rails db:migrate
bundle exec rails test -v
bundle exec rails test -v -s 1
4 changes: 2 additions & 2 deletions lib/ruby_lsp/ruby_lsp_rails/runner_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def initialize

begin
count += 1
$stderr.puts("Ruby LSP Rails booting server - count #{count}")
read_response
rescue EmptyMessageError
$stderr.puts("Ruby LSP Rails is retrying initialize (#{count})")
Expand All @@ -83,8 +84,7 @@ def initialize
at_exit do
if @wait_thread.alive?
$stderr.puts("Ruby LSP Rails is force killing the server")
sleep(0.5) # give the server a bit of time if we already issued a shutdown notification
puts "Killing server..."
sleep(5) # give the server a bit of time if we already issued a shutdown notification
# Process.kill(T.must(Signal.list["KILL"]), @wait_thread.pid)
system("taskkill /f /pid #{@wait_thread.pid}")
end
Expand Down

0 comments on commit 5c26720

Please sign in to comment.