You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gopls/doc/analyzers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ before you run your tests, or even before you save your files.
15
15
This document describes the suite of analyzers available in gopls,
16
16
which aggregates analyzers from a variety of sources:
17
17
18
-
- all the usual bug-finding analyzers from the `go vet` suite (e.g. `printf`; run `go tool vet help` for the complete list);
18
+
- all the usual bug-finding analyzers from the `go vet` suite (e.g. `printf`; see [`go tool vet help`](https://pkg.go.dev/cmd/vet) for the complete list);
19
19
- a number of analyzers with more substantial dependencies that prevent them from being used in `go vet` (e.g. `nilness`);
20
20
- analyzers that augment compilation errors by suggesting quick fixes to common mistakes (e.g. `fillreturns`); and
21
21
- a handful of analyzers that suggest possible style improvements (e.g. `simplifyrange`).
@@ -71,6 +71,9 @@ Hovering over the directive shows information about the other symbol.
71
71
72
72
<imgsrc='../assets/hover-linkname.png'>
73
73
74
+
The hover information for symbols from the standard library added
75
+
after Go 1.0 states the Go release that added the symbol.
76
+
74
77
Settings:
75
78
- The [`hoverKind`](../settings.md#hoverKind) setting controls the verbosity of documentation.
76
79
- The [`linkTarget`](../settings.md#linkTarget) setting specifies
@@ -91,7 +94,7 @@ Client support:
91
94
-**CLI**: `gopls definition file.go:#start-#end` includes information from a Hover query.
92
95
93
96
94
-
## SignatureHelp
97
+
## Signature Help
95
98
96
99
The LSP [`textDocument/signatureHelp`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_signatureHelp)
97
100
query returns information about the innermost function call enclosing
@@ -105,13 +108,15 @@ function call.
105
108
<imgsrc='../assets/signature-help.png'>
106
109
107
110
Client support:
108
-
-**VS Code**: enabled by default. Displays signature and doc comment alongside Hover information.
111
+
-**VS Code**: enabled by default.
112
+
Also known as "[parameter hints](https://code.visualstudio.com/api/references/vscode-api#SignatureHelpProvider)" in the [IntelliSense settings](https://code.visualstudio.com/docs/editor/intellisense#_settings).
113
+
Displays signature and doc comment alongside Hover information.
109
114
-**Emacs + eglot**: enabled by default. Displays signature in the echo area.
110
115
-**Vim + coc.nvim**: ??
111
116
-**CLI**: `gopls signature file.go:#start-#end`
112
117
113
118
114
-
## DocumentHighlight
119
+
## Document Highlight
115
120
116
121
The LSP [`textDocument/documentHighlight`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_documentHighlight)
117
122
query reports a set of source ranges that should be highlighted based
@@ -140,7 +145,7 @@ Client support:
140
145
-**CLI**: `gopls signature file.go:#start-#end`
141
146
142
147
143
-
## InlayHint
148
+
## Inlay Hint
144
149
145
150
The LSP [`textDocument/inlayHint`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_inlayHint)
146
151
query returns a set of annotations to be spliced into the current file
@@ -189,7 +194,7 @@ Client support:
189
194
-**Vim + coc.nvim**: ??
190
195
-**CLI**: not supported
191
196
192
-
## SemanticTokens
197
+
## Semantic Tokens
193
198
194
199
The LSP [`textDocument/semanticTokens`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens)
195
200
query reports information about all the tokens in the current file, or
@@ -220,7 +225,7 @@ Client Support:
220
225
For internal details of gopls' implementation of semantic tokens,
221
226
see [semantic tokens](../semantictokens.md).
222
227
223
-
## FoldingRange
228
+
## Folding Range
224
229
225
230
The LSP [`textDocument/foldingRange`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_foldingRange)
226
231
query reports the list of regions in the current file that may be
@@ -240,7 +245,7 @@ Client support:
240
245
-**Vim + coc.nvim**: ??
241
246
-**CLI**: `gopls folding_ranges file.go`
242
247
243
-
## DocumentLink
248
+
## Document Link
244
249
245
250
The LSP [`textDocument/documentLink`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_documentLink)
246
251
query uses heuristics to extracts URLs from doc comments and string
0 commit comments