Skip to content

Commit 3cba53c

Browse files
committed
[release] prepare v0.31.0 release
8a5263d package.json: update gopls settings for v0.7.5 e79a488 test: fix default go.delveConfig test ffc9238 tools: fix gopls update tool generation 5bfc2aa build/all.bash: fix jq query to change hideSystemGoroutines default 0c7a9c4 CHANGELOG.md: Update CHANGELOG.md for release 4ef6379 src/goToolsInformation: update latest gopls prerelease version aae8322 package.json: use defaults from package.json for delveConfig 4667012 package.json: change go template file language id to gotmpl 7cabf78 src/goBrowsePackage.ts: use async function syntax 5a7c4f7 build,docs: remove references to all.bash setup_env 9fce485 package.json: pin direct dependencies a22f335 docs/contributing.md: encourage npm ci instead of npm install 3e64075 test: use @vscode/test-electron instead of vscode-test c2fcb4e go.mod: update imports to latest versions a0af37b test: increase sleep time to wait for dlv cleanup b65133f goDebug.test.ts: stat for output file multiple times 62db19c goDebug.test.ts: update switch goroutine test d2c9293 tools/generate.go: fix default value formatting for []string types 85f1be0 test: disable should cleanup when stopped 7abeb7a package.json: use 'console' enums consistent with other extensions 1fa51bc package.json: add description of 'console' and 'asRoot' 8d2a31f src/goDebugFactory,goDebugConfiguration: adjust env computation a807c61 src/goDebugFactory: add support for `asRoot` property c4f5c25 test: disable switch goroutine tests c132833 src/goDebugConfiguration: use 'dlv' instead of 'dlv-dap' binary 094f345 debugging.md: note that 'go build', not 'go run' must be used with dlv 943ff11 src/goDebugFactory: support integrated/external console f4e5154 src/goDebugFactory: start dlv-dap lazily cd0a462 src/goDebugFactory: use --client-addr when console=integrated/external f4aa041 debugging.md: add a note about using --continue with remote server f4f07b0 test: remove unused dlvDapSkipsEnabled variable 143b6d9 workflow: enable tests with go1.18beta1 691e15f src/goDebugFactory: improve start-up and session fail messages for remote dlv-dap 25af90d src/goTest: fix output for subtests 944fbf7 src/goTest: don't resolve tests in virtual files 1dc72ce test: enable substitutePath tests for remote dlv-dap efdf4bf test: enable disconnect remote dlv-dap test bccac79 test: enable remote set breakpoints tests 6de4255 test: enable basic remote tests 482381f test: enable unknown request test 1395952 README.md: update debugging video link 08dacee src/goStatus: assign id/name to each status bar item 8c3683f README: add link to GopherCon Debugging Treasure Hunt presentation e81d440 package.json: start v0.31.0 dev f5e6bec package.json: update gopls settings Change-Id: Ic032bf88783beea865c24398a3582b1b133f02a0
2 parents 30087b8 + 8a5263d commit 3cba53c

40 files changed

+1422
-622
lines changed

.github/workflows/test-long-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
os: [ubuntu-latest, windows-latest, macos-latest]
1919
version: ['stable', 'insiders']
20-
go: ['1.15', '1.16', '1.17']
20+
go: ['1.15', '1.16', '1.17', '1.18.0-beta1']
2121

2222
steps:
2323
- name: Clone repository

.github/workflows/test-long.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest, windows-latest] # TODO: reenable macos-latest
1818
version: ['stable']
19-
go: ['1.15', '1.16', '1.17']
19+
go: ['1.15', '1.16', '1.17', '1.18.0-beta1']
2020

2121
steps:
2222
- name: Clone repository

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## v0.31.0 - 20 Jan, 2022
2+
3+
### Fixes
4+
5+
- src/goStatus: assign id/name to each status bar item ([Issue 1571](https://github.com/golang/vscode-go/issues/1571)) <!-- CL 370354 -->
6+
- Change go template file language id to `gotmpl` ([Issue 1957](https://github.com/golang/vscode-go/issues/1957)) <!-- CL 376037 -->
7+
8+
### Debugging
9+
10+
- Use 'dlv' instead of 'dlv-dap' binary ([Issue 1977](https://github.com/golang/vscode-go/issues/1977)) <!-- CL 374594 -->
11+
- Experimental support of 'console' mode debugging ([Issue 124](https://github.com/golang/vscode-go/issues/124)) <!-- CL 358618 -->
12+
- Support debugging with root privileges ([Issue 558](https://github.com/golang/vscode-go/issues/558))
13+
- Updated [debugging documentation]() ([Issue 1861](https://github.com/golang/vscode-go/issues/1861),[1719](https://github.com/golang/vscode-go/issues/1719),([1676](https://github.com/golang/vscode-go/issues/1676), [123](https://github.com/golang/vscode-go/issues/123), [855](https://github.com/golang/vscode-go/issues/855), [1840](https://github.com/golang/vscode-go/issues/1840)))
14+
- Enabled remaining tests for dlv dap and fixed flaky tests ([Issue 1958](https://github.com/golang/vscode-go/issues/1958),[Issue 1993](https://github.com/golang/vscode-go/issues/1993))
15+
- Improvement of debug session start-up and session fail messages ([Issue 1861](https://github.com/golang/vscode-go/issues/1861)) <!-- CL 371974 -->
16+
17+
### Test Explorer
18+
19+
- src/goTest: don't resolve tests in virtual files <!-- CL 373234 -->
20+
- src/goTest: fix output for subtests ([Issue 1837](https://github.com/golang/vscode-go/issues/1837)) <!-- CL 373274 -->
21+
22+
### Development Process Updates
23+
24+
- Recommend that contributers use npm ci instead of npm install when developing vscode-go ([Issue 2010](https://github.com/golang/vscode-go/issues/2010)) <!-- CL 379154 -->
25+
- test: use @vscode/test-electron instead of vscode-test <!-- CL 377336 -->
26+
- go.mod: update imports to latest versions <!-- CL 374280 -->
27+
- package.json: pin direct dependencies ([Issue 2010](https://github.com/golang/vscode-go/issues/2010)) <!-- CL 379155 -->
28+
- Enable tests with go1.18beta1 ([Issue 1950](https://github.com/golang/vscode-go/issues/1950)) <!-- CL 374055 -->
29+
30+
### Thanks
31+
32+
Thank you for your contribution, @firelizzard18, @hyangah, @jamalc, @polinasok, @TheNagaPraneeth, @suzmue!
33+
134
## v0.30.0 - 16 Dec, 2021
235

336
A list of all issues and changes can be found in the [v0.30.0 milestone](https://github.com/golang/vscode-go/milestone/40) and [commit history](https://github.com/golang/vscode-go/compare/v0.29.0...v0.30.0).

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ We recommend switching your remote attach configurations in `launch.json` to use
1616
`"debugAdapter":"dlv-dap"` now to verify that this works for you.
1717
Please [file a new issue](https://github.com/golang/vscode-go/issues/new/choose) if you encounter any problems.
1818

19+
📣📣 Watch [Debugging Treasure Hunt](https://youtu.be/ZPIPPRjwg7Q) from [GopherCon 2021](https://www.gophercon.com/) for a fun take on a debugging demo with VS Code Go and Delve DAP.
20+
1921
## Quick Start
2022

2123
Welcome! 👋🏻<br/>

build/all.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Available subcommands:
1111
help - display this help message.
1212
test - build and test locally. Some tests may fail if vscode is already in use.
1313
testlocal - build and test in a locally built container.
14-
setup_env - setup environment for test. This installs tools under GOPATH/bin.
1514
ci - build and test with headless vscode. Requires Xvfb.
1615
EOUSAGE
1716
}
@@ -81,7 +80,7 @@ prepare_nightly() {
8180
.displayName="Go Nightly" |
8281
.publisher="golang" |
8382
.description="Rich Go language support for Visual Studio Code (Nightly)" |
84-
.contributes.configuration.properties."go.delveConfig.hideSystemGoroutines".default=true
83+
.contributes.configuration.properties."go.delveConfig".properties.hideSystemGoroutines.default=true
8584
') > /tmp/package.json && mv /tmp/package.json package.json
8685

8786
# Replace CHANGELOG.md with CHANGELOG.md + Release commit info.

docs/contributing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ Please note that extra configuration is required to build and run the [Debug Ada
3535
### Setup
3636

3737
1) Install [node](https://nodejs.org/en/). Note: make sure that you are using `npm v7` or higher. The file format for `package-lock.json` (changed significantly)[https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json#file-format] in `npm v7`.
38-
2) Clone the repository, run `npm install`, and open VS Code:
38+
2) Clone the repository, run `npm ci`, and open VS Code:
3939

4040
```bash
4141
git clone https://go.googlesource.com/vscode-go
4242
cd vscode-go
43-
npm install
43+
npm ci
4444
code .
4545
```
4646

@@ -64,11 +64,11 @@ If you make subsequent edits in the codebase, you can reload (`Ctrl+R`) the `[Ex
6464
6565
Simple unit tests that do not require interaction with VS Code are located in `test/unit`.
6666
Tests in `test/integration` and `test/gopls` directories are integration tests. They involve invocation of the VS Code API and
67-
require external Go tools installed in `GOPATH`. The command `setup_env` in [`build/all.bash`](https://github.com/golang/vscode-go/blob/master/build/all.bash)
67+
require external Go tools installed in `GOPATH`. The command `installtools` in [`tools/installtools/main.go`](https://github.com/golang/vscode-go/blob/master/tools/installtools/main.go)
6868
installs all the tool dependencies in `GOPATH`.
6969
7070
1. `export GOPATH=/path/to/gopath/for/test`
71-
1. `build/all.bash setup_env`
71+
1. `go run tools/installtools/main.go`
7272
1. Unfortunately, VS Code test framework inherits your user settings when running tests [Issue 43](https://github.com/golang/vscode-go/issues/43). Make sure VS Code user settings do not contain any go related configuration, except `go.gopath` or `go.toolsGopath` in case you installed the tools for testing in a different `GOPATH`.
7373
7474
There are currently three test launch configurations: (1) `Launch Extension Tests`, (2) `Launch Extension Tests with Gopls`, and (3) `Launch Unit Tests`. To run the tests locally, open the Run view (`Ctrl+Shift+D`), select the relevant launch configuration, and hit the Play button (`F5`).
@@ -79,13 +79,13 @@ After making changes to the extension, you may want to test it end-to-end instea
7979
8080
1. Install the [vsce](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#vsce) tool for packaging extensions (`npm install -g vsce`).
8181
2. `cd` into your `vscode-go` directory.
82-
3. Install all dependencies by running `npm install`.
82+
3. Install all dependencies by running `npm ci`.
8383
4. Run `vsce package`. This will generate a file with a `.vsix` extension in your current directory.
8484
8585
```bash
8686
npm install -g vsce
8787
cd vscode-go
88-
npm install
88+
npm ci
8989
vsce package
9090
```
9191

0 commit comments

Comments
 (0)