You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/goDebugFactory: connect after createDebugAdapterDescriptor
This is a partial revert of https://go-review.googlesource.com/c/vscode-go/+/313049
CL/313049 attempted to complete the launch + connect before returning
from createDebugAdapterDescriptor call. The intention was to detect
the problems early enough and simplify the code path. But it turned out
VSCode does not fully initialize the debug session and its associated
resources such as a Debug Console before createDebugAdapterDescriptor
is complete. As a result, any log messages before the return are dropped
from Debug Console, which hurts usability/discoverability.
Revert the cl, but instead of lazily calling startAndConnectToServer
upon the very first sendMessageToServer call, call it from the
constructor. We will need it anyway even when we disconnect
without sending any message before.
logDest test suite is temporarily disabled because the test
depends on createDebugAdapterDescriptor's failure when invalid
logDest is specified.
Change-Id: I980dd27e265133274b8f98bbfddc3a40160e115e
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/320432
Trust: Hyang-Ah Hana Kim <[email protected]>
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
TryBot-Result: kokoro <[email protected]>
Reviewed-by: Suzy Mueller <[email protected]>
0 commit comments