Change information
Commit message:
extension/src: update regex for parseGoVersionOutput
In the pickGoProcess feature, we provide an interactive
process picker to find local processes to attach to
in debug mode.
We find and filter all local processes to determine
which ones are actually Go. To do this, we run 'go version'
on the executable paths. We then attempt to match the output of 'go version'
to a regex goVersionRegexp. Currently, this regex does not match
go versions with suffixes like "rc1" or "-X:nodwarf5, so it will
not add them to the list of available processes to attach.
Update the regex to allow these suffixes so that we show
them in the pickGoProcess dropdown.
Fixes golang/vscode-go#4059
Change-Id: I612bba3a9f5fa41e29db61f92e3f48e413660e05
Files:
- M extension/src/pickProcess.ts
- M extension/test/integration/pickProcess.test.ts
Change size: XS
Delta: 2 files changed, 6 insertions(+), 1 deletion(-)
Branch: refs/heads/master