Skip to content

Commit 8298d83

Browse files
committed
[release] prepare v0.33.0 release
33d46b5 src/goDebugConfiguration: fix debugAdapter default selection df181c8 package.json: clarify format and precedence of env-setting debug attributes e01cc4b src/goVulncheck: prevent concurrent command execution 6a4ca67 src/goDebugConfiguration: default to dlv-dap for remote in preview mode f4ccfc9 envUtils.ts: log envFile load error d459a78 src/goExplorer.ts: show go explorer on extension activation 8b84a39 tools/docs2wiki: remove redundant title 9ea27e6 tools/docs2wiki: tool that rewrites local .md file urls with wiki links 3b3ac3f docs: fix _Sidebar and add TOC to Home.md 1e2bc88 .vscodeignore: ignore more config files 097d627 build/all.bash: add go test in ci test a87c062 src/goTools: install [email protected] when using go1.16 or older 3549a9a tools/installtools: install [email protected] for go < 1.17 5127e14 src/goToolsInformation: mark go-outline as replacedByGopls 8b9a0e7 test/gopls/survey.test: removed the unread variable 7c3604a docs: update debug-adapter.md ae41a2d docs: add Home/footer/sidebar/faq, move release_plan.md 33925ef .github/workflows: add wiki.yml that copies docs/ to wiki repo 9c33653 package.json: update to moment 2.29.2 e599c1a all: gofmt 8c5171d src/goVulncheck.ts: add package or workspace choice to vulncheck command 1a65a12 src/goTest: Use more robust method to find module name in go.mod a387381 .github/workflows: update GabrielBB/xvfb-action and go versions 21fe4bb src/goMain: require configureLanguageServer for full activation d0de08d test/gopls/survey: stub vscode.env.openExternal 089cf13 docs/advanced.md: remove go1.18 section, rearrange contents 28583ae docs/contributing.md: discuss kokoro and how to use it 9e9244c src/goVulncheck.ts: create vulncheck command cc7344b Revert "build: run npm audit as part of ci test" 47a586b package.json: sync [email protected] ea58fe1 debugging.md: add FAQ on debugging binaries with missing debug info 106d188 build: run npm audit as part of ci test c5bd652 package.json: describe enum values of lintOnSave/vetOnSave aa3f7cc tools/installtools: remove temporarily hard-coded gopls version 0fa41b1 docs/contributing.md: add tips for contribution e2a7fb5 docs/debugging.md: fix the default of envFile d7f9578 src/language/goLanguageServer: restore gopls opt-out survey prompt e694981 package-lock.json: update minimist to v1.2.6 3648e64 src/goExplorer.ts: make workspace go env editable via commands 7ab6cc5 src/goExplorer.ts: create opened files if they do not exist b0d47a8 src/goExplorer.ts: consolidate tools information into single tree item 3999594 package.json: add go icon to explorer view 78cc836 src/language: move legacy provider registration to a separate module cff188b src/language: move language features to the language directory c14a3ee test/integration: test go explorer tree view ui 4e80a4f src/goExplorer.ts: consolidate usage of go env command def9da9 src/goExplorer.ts: update tree item icons 5d86420 src/goExplorer.ts: display tools configuration detail in explorer view 3f5f0cd src/goExplorer.ts: add a go tree view to the explorer 8ab268f src/goDebugConfiguration: remove remote attach info pop-up b48fe43 package.json: start v0.33.0 dev bf63e1e CHANGELOG.md: change log for v0.32.0 2238caa package.json: reuse go.mod tmGrammar for go.work syntax highlight Change-Id: I91a19c718b3066047254f2baaccc09eb5afa6bb5
2 parents ff4ab90 + 33d46b5 commit 8298d83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1752
-490
lines changed

.github/workflows/release-nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Release (golang.go-nightly)
55
on:
66
schedule:
77
- cron: "0 15 * * MON-THU" # 15 UTC, monday-thursday daily
8-
workflow_dispatch:
8+
workflow_dispatch:
99

1010
jobs:
1111
release:
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Go
2929
uses: actions/setup-go@v2
3030
with:
31-
go-version: '1.17'
31+
go-version: '1.18'
3232

3333
- name: Install dependencies
3434
run: npm ci
@@ -52,7 +52,7 @@ jobs:
5252
run: npm run unit-test
5353

5454
- name: Run tests
55-
uses: GabrielBB/xvfb-action@v1.0
55+
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d
5656
with:
5757
run: npm run test
5858
env:

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

Lines changed: 2 additions & 2 deletions
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', '1.18.0-beta2']
20+
go: ['1.15', '1.16', '1.17', '1.18']
2121

2222
steps:
2323
- name: Clone repository
@@ -52,7 +52,7 @@ jobs:
5252
run: npm run unit-test
5353

5454
- name: Run tests
55-
uses: GabrielBB/xvfb-action@v1.0
55+
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d
5656
with:
5757
run: npm run test
5858
env:

.github/workflows/test-long.yml

Lines changed: 2 additions & 2 deletions
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', '1.18.0-beta2']
19+
go: ['1.15', '1.16', '1.17', '1.18']
2020

2121
steps:
2222
- name: Clone repository
@@ -52,7 +52,7 @@ jobs:
5252
run: npm run unit-test
5353

5454
- name: Run tests
55-
uses: GabrielBB/xvfb-action@v1.0
55+
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d
5656
with:
5757
run: npm run test
5858
env:

.github/workflows/test-smoke.yml

Lines changed: 2 additions & 2 deletions
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.17'
32+
go-version: '1.18'
3333

3434
- name: Install dependencies
3535
run: npm ci
@@ -49,7 +49,7 @@ jobs:
4949
run: npm run unit-test
5050

5151
- name: Run tests
52-
uses: GabrielBB/xvfb-action@v1.0
52+
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d
5353
with:
5454
run: npm run test
5555
env:

.github/workflows/wiki.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Wiki
2+
3+
# Controls when the workflow will run
4+
on:
5+
push:
6+
branches: [ master ]
7+
paths:
8+
- 'docs/**'
9+
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
# This workflow contains a single job called "build"
13+
publish:
14+
# The type of runner that the job will run on
15+
runs-on: ubuntu-latest
16+
17+
# Steps represent a sequence of tasks that will be executed as part of the job
18+
steps:
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20+
- name: Checkout vscode-go repo code
21+
uses: actions/checkout@v3
22+
with:
23+
path: vscode-go
24+
- name: Checkout vscode-go.wiki repo code
25+
uses: actions/checkout@v3
26+
with:
27+
repository: ${{github.repository}}.wiki
28+
path: wiki
29+
- name: Setup Go
30+
uses: actions/setup-go@v2
31+
- name: Push to wiki
32+
run: |
33+
cd vscode-go
34+
go run ./tools/docs2wiki -w ./docs
35+
cd ..
36+
cd wiki
37+
diff -ruN --exclude=.git . ../vscode-go/docs > ../mypatch || patch -p3 -E -f < ../mypatch
38+
git config --local user.email "[email protected]"
39+
git config --local user.name "GitHub Action"
40+
git add .
41+
git commit -m "Reflecting changes from ${GITHUB_REPOSITORY}@${GITHUB_SHA}"
42+
git remote -v
43+
git push
44+
git log -1

.vscodeignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
**/*.map
22
**/tslint.json
3+
.DS_Store
4+
.editorconfig
5+
.eslintignore
6+
.eslintrc.json
37
.git/
48
.github/
59
.gitignore
@@ -9,7 +13,10 @@
913
.vscode-test/
1014
SECURITY.md
1115
build/
16+
codereview.cfg
1217
docs/
18+
go.mod
19+
go.sum
1320
node_modules/
1421
out/
1522
src/

README.md

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

1111
📣
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.
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. It enchances remote debugging with the same
13+
[debugging features](docs/debugging.md) that are already in use for local debugging. It is now the default with the
14+
[Go Nightly](docs/nightly.md) build of the extension and will become the default for the stable releases in mid 2022.
1515
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.
@@ -83,6 +83,13 @@ extension.
8383
[TextMate rule](https://github.com/jeff-hykin/better-go-syntax) embedded in VS
8484
Code, not by this extension.
8585

86+
For better syntax highlighting, we recommend enabling
87+
[semantic highlighting](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide)
88+
by turning on [Gopls' `ui.semanticTokens` setting](https://github.com/golang/vscode-go/blob/master/docs/settings.md#uisemantictokens).
89+
```
90+
"gopls": { "ui.semanticTokens": true }
91+
```
92+
8693
## Tools
8794

8895
The extension uses a few command-line tools developed by the Go community. In

build/all.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ run_test() {
5555

5656
echo "**** Check if vsce works ****"
5757
vsce package
58+
59+
echo "**** Run Go tests ****"
60+
go test ./...
61+
# TODO(hyangah): see if go clean -modcache makes kokoro builder happy
62+
go clean -modcache
5863
}
5964

6065
run_test_in_docker() {

docs/Home.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Welcome to the VSCode Go Wiki!
2+
3+
### 📣 News and Upcoming Changes
4+
5+
[Remote attach debugging](./debugging#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.
6+
We plan to enable this as the default in 2022 H1 to enhance remote debugging with the same
7+
[debugging features](./debugging.md) that are already in use for local debugging.
8+
We recommend switching your remote attach configurations in `launch.json` to use
9+
`"debugAdapter":"dlv-dap"` now to verify that this works for you.
10+
Please [file a new issue](https://github.com/golang/vscode-go/issues/new/choose) if you encounter any problems.
11+
12+
### User Documentation
13+
14+
* [Overview of Extension Features](features.md)
15+
16+
* [Debugging Feature](debugging)
17+
* [Diagnostics](https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md)
18+
* [Setting Up Your Workspace](https://github.com/golang/tools/blob/master/gopls/doc/workspace.md)
19+
20+
* [Available Settings](settings.md)
21+
* [List of Extension Commands](commands.md)
22+
* [Commonly Used `tasks.json` Setup](tasks.md)
23+
* [3rd-party Tools Used By Extension](tools.md)
24+
* [User Interface](ui.md)
25+
* [FAQs](faq.md)
26+
* [Troubleshooting](troubleshooting.md)
27+
* [Advanced Topics](advanced.md)
28+
* [How to Contribute](contributing.md)

docs/_Footer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
### Want to contribute to this Wiki?
4+
5+
Update the source in the [vscode-go project's docs](https://github.com/golang/vscode-go/tree/master/docs) directory, and send a pull request.

0 commit comments

Comments
 (0)