Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/goDebugFactory: don't modify DebugConfiguration.port
This is a change to avoid modifying vscode.DebugConfiguration's port attribute inside startDapServer function. VSCode invokes DebugAdapterDescriptorFactory's createDebugAdapterDescriptor with the same DebugSession & DebugConfiguration objects when the session restart is requested. If we mess with the port attribute, the next call will be handled as if it was requested to connect to an external DAP server. So, let's stop modifying it. Updates #1347 Change-Id: I82d7b7f48924fd36e7a881be39fedf2e440e4809 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/305552 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org>
- Loading branch information