Skip to content

Commit

Permalink
add sleep on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Sep 6, 2023
1 parent 56aef36 commit e014b9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/elixir_ls_debugger/lib/debugger/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ defmodule ElixirLS.Debugger.Server do
@impl GenServer
def handle_continue(:disconnect, state = %__MODULE__{}) do
unless Application.get_env(:elixir_ls_debugger, :test_mode) do
Output.debugger_console("Received disconnect request")
Process.sleep(200)
System.stop(0)
else
Process.exit(self(), {:exit_code, 0})
Expand Down

0 comments on commit e014b9e

Please sign in to comment.