Skip to content

Commit 0a8bf5e

Browse files
committed
[release] prepare v0.28.0 release (2)
d66e68e CHANGELOG.md: for v0.28.0 3bde93e docs/features: add screenshot of testing UI 20812b7 all: add setting to disable test explorer 8b3398f github/workflows: update go versions c71634c goLanguageServer: track language server's restart history d5bd4eb src/debugAdapter/goDebug: do not log env vars additionally 23a2db0 src/goMain: remove tools version check hack 97265e8 src/goDebugConfiguration: do not merge toolExecutionEnvironment to 'env' Change-Id: Ib52c34ed720da98c4a9371dd554aeacb8556aa48
2 parents c61baaf + d66e68e commit 0a8bf5e

File tree

12 files changed

+62
-22
lines changed

12 files changed

+62
-22
lines changed

.github/workflows/release-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Go
3030
uses: actions/setup-go@v2
3131
with:
32-
go-version: '1.16'
32+
go-version: '1.17'
3333

3434
- name: Install dependencies
3535
run: npm ci

.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.0-rc1']
20+
go: ['1.15', '1.16', '1.17']
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.0-rc1']
19+
go: ['1.15', '1.16', '1.17']
2020

2121
steps:
2222
- name: Clone repository

.github/workflows/test-smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Go
3030
uses: actions/setup-go@v2
3131
with:
32-
go-version: '1.16'
32+
go-version: '1.17'
3333

3434
- name: Install dependencies
3535
run: npm ci

CHANGELOG.md

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
1-
📣 Delve's native DAP implementation ([`dlv-dap`](https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md))
2-
is enabled by default for local debugging. We updated the [Documentation for Debugging](https://github.com/golang/vscode-go/blob/master/docs/debugging.md)
3-
to show the new features available with dlv-dap. This change does not apply to remote debugging yet.
4-
For remote debugging, keep following the instruction in the
5-
[legacy debug adapter documentation](https://github.com/golang/vscode-go/blob/master/docs/debugging-legacy.md).
1+
## v0.28.0 - 16 Sep, 2021
2+
3+
This version requires VS Code 1.59 or newer.
4+
5+
🎉🧪 The extension implements [the Testing API of VS Code](https://code.visualstudio.com/api/extension-guides/testing). You can navigate and run/profile tests using the test explorer UI! Further work for better profiling and debugging support through the test explorer is underway. Please give it a try and provide feedback.
6+
7+
A list of all issues and changes can be found in the [v0.28.0 milestone](https://github.com/golang/vscode-go/milestone/34) and [commit history](https://github.com/golang/vscode-go/compare/v0.27.2...v0.28.0).
8+
9+
### Changes
10+
11+
- Require VS Code engine 1.59+.
12+
- Implement the Testing API [Issue 1579](github.com/golang/vscode-go/issues/1579)). <!-- CL 330809 -->
13+
The test provider discovers all Go tests and benchmarks including `stretchr` test suits ([Issue 1641](github.com/golang/vscode-go/issues/1641)) <!-- CL 343489 --> and sub-tests ([Issue 47800](github.com/golang/go/issues/47800), [1641](github.com/golang/vscode-go/issues/1641)) <!-- CL 343433 -->.
14+
- Offer basic profiling support through the testing API. ([Issue 1685](github.com/golang/vscode-go/issues/1685)) <!-- CL 344149 -->
15+
- Debugging
16+
- Allow to connect to a Delve DAP server running on a different host using `host` and `port` launch properties. ([Issue 1729](github.com/golang/vscode-go/issues/1729)) <!-- CL 346269 -->
17+
- Disabled check for active debug session ([Issue 1710](github.com/golang/vscode-go/issues/1710)). <!-- CL 349596 --> This will allow to run multiple debug sessions simultaneously.
18+
- Disabled the go version check by supplying the `--check-go-version=false` delve flag ([Issue 1716](github.com/golang/vscode-go/issues/1716)). <!-- CL 347562 --> This is to allow users of older versions of Go to debug using Delve DAP which requires Delve 1.6.1 or newer. If you need to use Delve 1.6.0 or older, please use [the legacy debug adapter](https://github.com/golang/vscode-go/blob/master/docs/debugging-legacy.md).
19+
- Fixed a legacy debug adapter's bug that broke remote debugging when breakpoints were set in irrelevant files. ([Issue 1762](github.com/golang/vscode-go/issues/1762)) <!-- CL 348972 -->
20+
- Added [the new FAQs section](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#faqs).
21+
- Removed tools version check hack that triggerred unnecessary warnings about go and tools version mismatch issues ([Issue 1698](github.com/golang/vscode-go/issues/1698)). <!-- CL 349752 -->
22+
- Export an API with which other extensions can query the location of go tools. ([Issue 233](github.com/golang/vscode-go/issues/233)) <!-- CL 336509 -->
23+
- Fixed regexps for test function names ([CL 344130](https://go-review.googlesource.com/c/vscode-go/+/344130)).
24+
- Track the language server's restart history and include it in the automated gopls crash report ([CL 344130](https://go-review.googlesource.com/c/vscode-go/+/344130)).
25+
- Code Health
26+
- Use `esbuild` instead of `webpack` ([Issue 1705](github.com/golang/vscode-go/issues/1705)). <!-- CL 343791 -->
27+
- Removed the temporary security workaround in favor of [VS Code's Workspace Trust concept](https://code.visualstudio.com/docs/editor/workspace-trust). <!-- CL 347690 -->
28+
- Updated the gopls settings documentation to reflect gopls/v0.7.2 settings.
29+
- docs: change blog.golang.org to go.dev/blog <!-- CL 348269 -->
30+
- package.json: update gopls settings (v0.7.2) <!-- CL 348909 -->
31+
32+
### Thanks
33+
34+
Thank you for your contribution, Nicolas Lepage, 180909, Polina Sokolova, Rebecca Stambler, and Suzy Mueller! Special thanks to Ethan Reesor for the Test Explorer work!
635

736
## v0.27.2 - 1st Sep, 2021
837

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ provides rich language support for the
99
[Go programming language](https://golang.org/).
1010

1111

12-
> 📣 Debugging using [`Delve`'s native DAP implementation](https://github.com/golang/vscode-go/blob/master/docs/debugging.md) is enabled by default in v0.27.0.<br>
13-
1412
## Quick Start
1513

1614
Welcome! 👋🏻<br/>

docs/commands.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,3 @@ Reset keys in workspace state to undefined.
238238
### `Go: Reset Global State`
239239

240240
Reset keys in global state to undefined.
241-
242-
### `Go: Toggle Workspace Trust Flag`
243-
244-
Toggle the workspace trust flag. Workspace settings that determine tool locations are disabled by default in untrusted workspaces.

docs/features.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ Behind the scenes, the `Debug: Start without Debugging` command calls `go run`.
203203

204204
### Test and benchmark
205205

206-
[Code lenses](https://code.visualstudio.com/blogs/2017/02/12/code-lens-roundup) allow users to easily run tests and benchmarks for a given function, file, package, or workspace. Alternatively, the same functionality is available through a set of commands: [`Go: Test Function At Cursor`](commands.md#go-test-function-at-cursor), [`Go: Test File`](commands.md#go-test-file), [`Go: Test Package`](commands.md#go-test-package), and [`Go: Test All Packages in Workspace`](commands.md#go-test-all-packages-in-workspace).
206+
[Test UI](https://code.visualstudio.com/api/extension-guides/testing) and [Code lenses](https://code.visualstudio.com/blogs/2017/02/12/code-lens-roundup) allow users to easily run tests and benchmarks for a given function, file, package, or workspace. Alternatively, the same functionality is available through a set of commands: [`Go: Test Function At Cursor`](commands.md#go-test-function-at-cursor), [`Go: Test File`](commands.md#go-test-file), [`Go: Test Package`](commands.md#go-test-package), and [`Go: Test All Packages in Workspace`](commands.md#go-test-all-packages-in-workspace).
207+
208+
<div style="text-align: center;"><img src="images/testexplorer.gif" alt="Testing UI" style="width: 75%"> </div>
207209

208210
### Code Coverage
209211

docs/images/testexplorer.gif

1.84 MB
Loading

docs/settings.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ Default: `false`
402402

403403
Concatenate all test log messages for a given location into a single message.
404404

405+
Default: `true`
406+
### `go.testExplorer.enable`
407+
408+
Enable the Go test explorer
409+
405410
Default: `true`
406411
### `go.testExplorer.packageDisplayMode`
407412

0 commit comments

Comments
 (0)