Skip to content

Commit abdbe7a

Browse files
committed
[release] prepare v0.30.0 release (2)
Change-Id: I85807db7780b3e3beb9066802dc66033f04087a2
2 parents acbe9af + 15a266b commit abdbe7a

File tree

6 files changed

+60
-16
lines changed

6 files changed

+60
-16
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
## v0.30.0 - 14 Dec, 2021
2+
3+
<!-- TODO: Debug features -->
4+
5+
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).
6+
7+
### Changes
8+
9+
- Debugging
10+
- `dlv-dap` is pinned at [`@2f136727`](https://github.com/go-delve/delve/commit/2f13672765fead22e5376fb4754c48a96c33cc0b).
11+
- Remote debugging support using `dlv-dap` is available.<br>Please follow [the instruction](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#remote-debugging) to enable remote debugging using `dlv-dap`. ([Issue 1861](https://github.com/golang/vscode-go/issues/1861))
12+
- [Launch configuration](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#launchjson-attributes):
13+
- `showRegisters`([Issue 1527](https://github.com/golang/vscode-go/issues/1527)). This was added to [`go.delveConfig`](https://github.com/golang/vscode-go/blob/master/docs/settings.md#godelveconfig), too.
14+
- `hideSystemGoroutines`([Issue 1797](https://github.com/golang/vscode-go/issues/1797)). This was added to [`go.delveConfig`](https://github.com/golang/vscode-go/blob/master/docs/settings.md#godelveconfig), too. We plan to hide system goroutines by default in the next release, and it is already enabled in Nightly. Feedback is welcome!
15+
- `backend` accepts [`"rr"`](https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_backend.md). Along with [`"mode": "replay"`](https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_replay.md) support that has been available since v0.27.2, this concludes the work for the [rewind](https://twitter.com/belbaoverhill/status/1466911997174464513) feature support. ([Issue 110](https://github.com/golang/vscode-go/issues/110)). The feature requires [Mozilla's `rr`](https://github.com/mozilla/rr).
16+
- Runtime frames are no longer deemphasized. ([Issue 1916](https://github.com/golang/vscode-go/issues/1916))
17+
- [Logpoints](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#breakpoints) support is available. ([Issue 123](https://github.com/golang/vscode-go/issues/123))
18+
- DEBUG CONSOLE accepts the new `dlv` command that allows users to dynamically inspect/adjust debug configuration. Please run `dlv help` from DEBUG CONSOLE to see the list of supported options.
19+
- Bug fixes:
20+
- Correctly infer `mode` for `attach` requests. ([Issue 1929](https://github.com/golang/vscode-go/issues/1929))
21+
- Stop debugging when delve remote connection ends in `legacy` remote debugging. ([CL 366936](https://go-review.googlesource.com/c/vscode-go/+/366936/))
22+
- Allow users to debug with older versions of `dlv-dap`. ([Issue 1814](https://github.com/golang/vscode-go/issues/1814))
23+
24+
- Include `Fuzz*` functions in Testing UI and adds test codelens. ([Issue 1794](https://github.com/golang/vscode-go/issues/1794)) <!-- CL 361935 -->
25+
- `gofumports` is pinned at `v0.1.1`. We plan to remove it from the recognized formatter tool list since [`gofumports` is officially deprecated](https://github.com/mvdan/gofumpt/releases/tag/v0.2.0) early next year.
26+
- Disabled separate linting if gopls's 'staticcheck' is enabled. ([Issue 1867](https://github.com/golang/vscode-go/issues/1867))
27+
- Updated the in-editor user survey URL. ([CL 360775](https://go-review.googlesource.com/c/vscode-go/+/366936))
28+
- Limited Go file search scope for extension activation ([Issue 1894](https://github.com/golang/vscode-go/issues/1894))
29+
- Code Health
30+
- Enabled esModuleInterop. ([CL 349170](https://go-review.googlesource.com/c/vscode-go/+/349170))
31+
- Bumped TS target to ES2017. ([Issue 1712](https://github.com/golang/vscode-go/issues/1712))
32+
- Updated json-schema to 0.4.0
33+
34+
### Thanks
35+
36+
Thank you for your contribution, @polinasok, @suzmue, @firelizzard18, @hashedhyphen, @fengwei2002, @devuo, @fflewddur, @hyangah
137
## v0.29.0 - 26 Oct, 2021
238

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

README.md

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

11+
📣
12+
[Remote attach debugging](docs/debugging.md#connecting-to-headless-delve-with-target-specified-at-server-start-up) is now available via Delve's native DAP implementation with Delve v1.7.3 or newer.
13+
We plan to enable this as the default in early 2022 to enhance remote debugging with the same
14+
[debugging features](docs/debugging.md) that are already in use for local debugging.
15+
We recommend switching your remote attach configurations in `launch.json` to use
16+
`"debugAdapter":"dlv-dap"` now to verify that this works for you.
17+
Please [file a new issue](https://github.com/golang/vscode-go/issues/new/choose) if you encounter any problems.
1118

1219
## Quick Start
1320

docs/debugging.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ See [VS Code’s Debug Documentation on Breakpoints](https://code.visualstudio.c
169169
<img src="images/function-breakpoint.gif" alt="Function breakpoint" width="75%">
170170
</p>
171171

172-
* **Logpoints**: a [logpoint](https://code.visualstudio.com/docs/editor/debugging#_logpoints) is a variant of breakpoint that does not 'break', but instead logs a message to Debug Console and continues execution. Expressions within `{}` are interpolated. For the list of acceptable expressions and syntax, see [Delve's documentation](https://github.com/go-delve/delve/blob/master/Documentation/cli/expr.md#expressions).
172+
* **Logpoints**: a [logpoint](https://code.visualstudio.com/docs/editor/debugging#_logpoints) is a variant of breakpoint that does not 'break', but instead logs a message to DEBUG CONSOLE and continues execution. Expressions within `{}` are interpolated. For the list of acceptable expressions and syntax, see [Delve's documentation](https://github.com/go-delve/delve/blob/master/Documentation/cli/expr.md#expressions).
173173

174174
### Data Inspection
175175

@@ -235,6 +235,10 @@ When the program stops due to exception, panic, or bad access error, the CALL ST
235235

236236
<p align="center"><img src="images/panicinfo.png" alt="Panic" width="75%"></p>
237237

238+
## `dlv` command from DEBUG CONSOLE
239+
240+
DEBUG CONSOLE accepts commands that allow users to dynamically inspect/change debug configuration, or inspect the list of source code compiled in the debugged binary. Use `dlv help` and `dlv config -list` from the DEBUG CONSOLE panel to see the list of supported commands and dynamically adjustable settings.
241+
238242
## Configuration
239243

240244
### Launch.json Attributes

src/goMain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,10 @@ If you would like additional configuration for diagnostics from gopls, please se
724724
function showGoWelcomePage(ctx: vscode.ExtensionContext) {
725725
// Update this list of versions when there is a new version where we want to
726726
// show the welcome page on update.
727-
const showVersions: string[] = ['0.27.0'];
727+
const showVersions: string[] = ['0.30.0'];
728728
// TODO(hyangah): use the content hash instead of hard-coded string.
729729
// https://github.com/golang/vscode-go/issue/1179
730-
let goExtensionVersion = '0.27.0';
730+
let goExtensionVersion = '0.30.0';
731731
let goExtensionVersionKey = 'go.extensionVersion';
732732
if (isInPreviewMode()) {
733733
goExtensionVersion = '0.0.0';

src/welcome.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,11 @@ export class WelcomePanel {
158158
<div class="Announcement">
159159
<img src="${announceURI}" alt="announce" class="Announcement-image" />
160160
<p>
161-
Heads up!
162-
The extension now uses Delve's native DAP implementation (<a href="https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md">dlv-dap</a>)
163-
for local debugging. We updated the <a href="https://github.com/golang/vscode-go/blob/master/docs/debugging.md">
164-
Documentation for Debugging</a> to show the new features available with dlv-dap.
165-
This change does not apply to remote debugging yet. For remote debugging, keep following
166-
the instruction in the <a href="https://github.com/golang/vscode-go/blob/master/docs/debugging-legacy.md">old documentation</a>.
161+
New! <a href="https://github.com/golang/vscode-go/blob/master/docs/debugging.md#remote-debugging">Remote
162+
attach debugging</a> is now available on demand via Delve's native DAP implementation with Delve v1.7.3 or newer.
163+
We plan to enable this as the default in early 2022 to enhance remote debugging with the same
164+
<a href="https://github.com/golang/vscode-go/blob/master/docs/debugging.md">debugging features</a>
165+
that are already in use for local debugging.
167166
</p>
168167
</div>
169168

tools/license.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export GIT_GOFMT_HOOK=off
2626

2727
YARN="${ROOT}/node_modules/.bin/yarn"
2828

29+
# convert packages-lock.json to yarn.lock
30+
$YARN import
31+
2932
ALL_LICENSES=$(
3033
$YARN licenses list --json --no-progress 2>/dev/null|
3134
jq 'select(.type == "table") | .data.body | map( {name: .[0], version: .[1], license: .[2], url: .[3], verndor: .[4], vendorName: .[5]} )')
@@ -43,15 +46,10 @@ NG=$(echo "${ALL_LICENSES}" | jq '
4346
"(MIT OR Apache-2.0)": 1,
4447
"(MIT AND Zlib)": 1,
4548
"(MIT AND BSD-3-Clause)": 1,
46-
"(BSD-2-Clause OR MIT OR Apache-2.0)": 1,
47-
"CC-BY-3.0": 1,
48-
"CC-BY-4.0": 1,
49-
"CC0-1.0": 1,
50-
"(MIT OR CC0-1.0)": 1,
49+
"Python-2.0": 1,
5150
} as $allowed_licenses |
5251
{
53-
54-
"[email protected]": 1, # MIT
52+
5553
} as $allow_list |
5654
.[] | select(.license | in($allowed_licenses) | not)
5755
| select((.name+"@"+.version) | in($allow_list) | not) ')

0 commit comments

Comments
 (0)