Skip to content

Commit 38b4cbb

Browse files
committed
Merge branch 'master' into go-test-background-arg
2 parents aeebba9 + 65d72fd commit 38b4cbb

Some content is hidden

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

74 files changed

+1421
-732
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.18', '1.19', '1.20', '1.21']
20+
go: ['1.19', '1.20', '1.21', '1.22']
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.18', '1.19', '1.20', '1.21']
19+
go: ['1.19', '1.20', '1.21', '1.22']
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
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Go
3232
uses: actions/setup-go@v4
3333
with:
34-
go-version: '1.21'
34+
go-version: '1.22'
3535
check-latest: true
3636
cache: true
3737

.github/workflows/wiki.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Go
3636
uses: actions/setup-go@v4
3737
with:
38-
go-version: '1.21'
38+
go-version: '1.22'
3939
check-latest: true
4040
cache: true
4141
cache-dependency-path: '**/go.sum'

.vscode/launch.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
"VSCODE_GO_IN_TEST": "1", // Disable code that shouldn't be used in test
5050
"MOCHA_TIMEOUT": "999999",
5151
},
52+
"outFiles": [
53+
"${workspaceFolder}/extension/out/**/*.js"
54+
],
5255
"sourceMaps": true,
5356
"smartStep": true,
5457
"preLaunchTask": "npm: watch",
@@ -71,6 +74,9 @@
7174
"env": {
7275
"VSCODE_GO_IN_TEST": "1" // Disable code that shouldn't be used in test
7376
},
77+
"outFiles": [
78+
"${workspaceFolder}/extension/out/**/*.js"
79+
],
7480
"sourceMaps": true,
7581
"preLaunchTask": "npm: watch",
7682
"cwd": "${workspaceFolder}/extension"

README.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,17 @@ extension fits your needs and enhances your development experience.
2323

2424
1. Install the [VS Code Go extension].
2525

26-
1. Open any directory or workspace containing Go code to automatically activate
27-
the extension. The
26+
1. Open any Go file or go.mod file to automatically activate the extension. The
2827
[Go status bar](https://github.com/golang/vscode-go/wiki/ui) appears in the
29-
bottom left corner of the window and displays your Go version.
28+
bottom right corner of the window and displays your Go version.
3029

31-
1. The extension depends on `go`, `gopls`, `dlv` and other optional tools. If
32-
any of the dependencies are missing, the ⚠️ `Analysis Tools Missing` warning
33-
is displayed. Click on the warning to download dependencies.
34-
35-
See the
36-
[tools documentation](https://github.com/golang/vscode-go/wiki/tools) for a
37-
complete list of tools the extension depends on.
30+
1. The extension depends on `go`, `gopls` (the Go language server), and optional
31+
tools depending on your settings. If `gopls` is missing, the extension will
32+
try to install it. The :zap: sign next to the Go version indicates
33+
the language server is running, and you are ready to go.
3834

3935
<p align="center">
40-
<img src="docs/images/installtools.gif" width=75%>
36+
<img src="docs/images/gettingstarted.gif" width=75%>
4137
<br/>
4238
<em>(Install Missing Tools)</em>
4339
</p>
@@ -52,7 +48,8 @@ You are ready to Go :-) &nbsp;&nbsp; 🎉🎉🎉
5248
and [advanced topics](https://github.com/golang/vscode-go/wiki/advanced) to
5349
customize the extension.
5450
* View the [tools documentation](https://github.com/golang/vscode-go/wiki/tools)
55-
for a complete list of tools the VS Code Go extension depends on.
51+
for a complete list of tools the VS Code Go extension depends on. You can
52+
install additional tools and update them by using "Go: Install/Update Tools".
5653
* Solve issues with the
5754
[general troubleshooting](https://github.com/golang/vscode-go/wiki/troubleshooting)
5855
and [debugging troubleshooting](https://github.com/golang/vscode-go/wiki/debugging#troubleshooting)
@@ -98,7 +95,7 @@ extension.
9895
<br/><em>(Toggle Test File)</em></p>
9996

10097
**⚠️ Note**: the default syntax highlighting for Go files is provided by a
101-
[TextMate rule](https://github.com/jeff-hykin/better-go-syntax) embedded in VS
98+
[TextMate rule](https://github.com/worlpaker/go-syntax) embedded in VS
10299
Code, not by this extension.
103100

104101
For better syntax highlighting, we recommend enabling
@@ -136,9 +133,9 @@ nightly build of this extension. Learn how to install it in by reading the
136133

137134
## Telemetry
138135

139-
VS Code Go extension relies on the [Go Telemetry](https://telemetry.go.dev) to
136+
VS Code Go extension relies on the [Go Telemetry](https://go.dev/doc/telemetry) to
140137
learn insights about the performance and stability of the extension and the
141-
language server (`gopls``).
138+
language server (`gopls`).
142139
**Go Telemetry data uploading is disabled by default** and can be enabled
143140
with the following command:
144141

@@ -151,7 +148,7 @@ traces to [telemetry.go.dev](https://telemetry.go.dev). You can inspect what
151148
data is collected and can be uploaded by running:
152149

153150
```
154-
go run golang.org/x/telemetry/cmdgotelemetry@latest view
151+
go run golang.org/x/telemetry/cmd/gotelemetry@latest view
155152
```
156153

157154
If we get enough adoption, this data can significantly advance the pace of
@@ -174,9 +171,8 @@ of reliability. For example:
174171
These are just a few ways that telemetry can improve gopls. The [telemetry blog
175172
post series](https://research.swtch.com/telemetry-uses) contains many more.
176173

177-
Go telemetry is designed to be transparent and privacy-preserving. If you have
178-
concerns about enabling telemetry, you can learn more at
179-
[https://telemetry.go.dev/privacy](https://telemetry.go.dev/privacy).
174+
Go telemetry is designed to be transparent and privacy-preserving. Learn more at
175+
[https://go.dev/doc/telemetry](https://go.dev/doc/telemetry).
180176

181177
## Contributing
182178

docs/debugging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ command-line options.
822822
We encourage you to give the newly added `"debugAdapter": "dlv-dap"` support a
823823
try and to
824824
[let us know of any issues](https://github.com/golang/vscode-go/issues/new). If
825-
you need to use the `legacy` mode, pleasse also see the
825+
you need to use the `legacy` mode, please also see the
826826
[legacy remote debugging](debugging-legacy.md#remote-debugging) documentation.
827827

828828
For example, start external headless server:
@@ -1050,7 +1050,7 @@ in the module cache, vendored modules, and the standard library.
10501050
```
10511051

10521052
Since rules are applied both from client to server and server to client,
1053-
rules with an empty string will be applied to *all* paths that it sees, so even
1053+
rules with an empty string will be applied to _all_ paths that it sees, so even
10541054
dependencies will be mapped to `"/path/to/module"`.
10551055

10561056
We plan to make this easier in the future. Progress can be tracked

docs/faq.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,22 @@
55
## Syntax highlighting doesn't seem to work.
66

77
The default syntax highlighting for Go files is provided by a
8-
[TextMate rule](https://github.com/jeff-hykin/better-go-syntax) embedded in VS Code,
8+
[TextMate rule](https://github.com/worlpaker/go-syntax) embedded in VS Code,
99
not by this extension.
1010

11-
For better syntax highlighting (including generics support), we recommend enabling
11+
For accurate syntax highlighting (including generics support), we recommend enabling
1212
[semantic highlighting](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide)
1313
by turning on [Gopls' `ui.semanticTokens` setting](settings.md#uisemantictokens).
1414

1515
```json
1616
"gopls": { "ui.semanticTokens": true }
1717
```
1818

19+
If you are experiencing issues with syntax highlighting, first check if you
20+
are using semantic highlighting. In case you did not enable semantic highlighting,
21+
report the issues to the [go-syntax](https://github.com/worlpaker/go-syntax)
22+
project directly.
23+
1924
## Code formatting by this extension doesn't seem to work.
2025

2126
When you have multiple formatter extensions, be sure to set this

docs/images/gettingstarted.gif

3.72 MB
Loading

docs/images/goexplorer.png

170 KB
Loading

0 commit comments

Comments
 (0)