Skip to content

Commit

Permalink
Fix #731: "externalTerminal" does not work on Linux
Browse files Browse the repository at this point in the history
Do not wait for "runInTerminal" response when spawning the launcher.
  • Loading branch information
Pavel Minaev authored and int19h committed Jun 29, 2022
1 parent 627bc1d commit 7676e29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/debugpy/adapter/launchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ def on_launcher_connected(sock):
if cwd is not None:
request_args["cwd"] = cwd
try:
session.client.channel.request("runInTerminal", request_args)
# It is unspecified whether this request receives a response immediately, or only
# after the spawned command has completed running, so do not block waiting for it.
session.client.channel.send_request("runInTerminal", request_args)
except messaging.MessageHandlingError as exc:
exc.propagate(start_request)

Expand Down

0 comments on commit 7676e29

Please sign in to comment.