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
Code completion without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`).
61
-
Include unimported packages in auto-complete suggestions. Not applicable when using the language server.
62
-
63
-
Default: `false`
64
58
### `go.buildFlags`
65
59
66
60
Flags to `go build`/`go test` used during build-on-save or running tests. (e.g. ["-ldflags='-s'"]) This is propagated to the language server if `gopls.build.buildFlags` is not specified.
@@ -170,13 +164,6 @@ Default: `"Off"`
170
164
If true, tests will not run concurrently. When a new test run is started, the previous will be cancelled.
171
165
172
166
Default: `false`
173
-
### `go.docsTool (deprecated)`
174
-
175
-
Documentation support without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`).
176
-
Pick 'godoc' or 'gogetdoc' to get documentation. Not applicable when using the language server.<br/>
177
-
Allowed Options: `godoc`, `gogetdoc`, `guru`
178
-
179
-
Default: `"godoc"`
180
167
### `go.editorContextMenuCommands`
181
168
182
169
Experimental Feature: Enable/Disable entries from the context menu in the editor.
@@ -251,47 +238,12 @@ Default: `"default"`
251
238
### `go.generateTestsFlags`
252
239
253
240
Additional command line flags to pass to `gotests` for generating tests.
254
-
### `go.gocodeAutoBuild (deprecated)`
255
-
256
-
`gocode` is deprecated by the Go language server. Enable the Go language server (`#go.useLanguageServer#`).
257
-
Enable gocode's autobuild feature. Not applicable when using the language server.
258
-
259
-
Default: `false`
260
-
### `go.gocodeFlags (deprecated)`
261
-
262
-
`gocode` is deprecated by the Go language server. Enable the Go language server (`#go.useLanguageServer#`).
263
-
Additional flags to pass to gocode. Not applicable when using the language server.
`gocode` is deprecated by the Go language server. Enable the Go language server (`#go.useLanguageServer#`).
269
-
Used to determine the Go package lookup rules for completions by gocode. Not applicable when using the language server.<br/>
270
-
Allowed Options: `go`, `gb`, `bzl`
271
-
272
-
Default: `"go"`
273
241
### `go.gopath`
274
242
275
243
Specify GOPATH here to override the one that is set as environment variable. The inferred GOPATH from workspace root overrides this, if go.inferGopath is set to true.
276
244
### `go.goroot`
277
245
278
246
Specifies the GOROOT to use when no environment variable is set.
279
-
### `go.gotoSymbol.ignoreFolders (deprecated)`
280
-
281
-
Code navigation without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`).
282
-
Folder names (not paths) to ignore while using Go to Symbol in Workspace feature. Not applicable when using the language server.
283
-
### `go.gotoSymbol.includeGoroot (deprecated)`
284
-
285
-
Code navigation without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`).
286
-
If false, the standard library located at $GOROOT will be excluded while using the Go to Symbol in File feature. Not applicable when using the language server.
287
-
288
-
Default: `false`
289
-
### `go.gotoSymbol.includeImports (deprecated)`
290
-
291
-
Code navigation without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`).
292
-
If false, the import statements will be excluded while using the Go to Symbol in File feature. Not applicable when using the language server.
293
-
294
-
Default: `false`
295
247
### `go.inferGopath`
296
248
297
249
Infer GOPATH from the workspace root. This is ignored when using Go Modules.
Real-time diagnostics without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`).
399
-
Use gotype on the file currently being edited and report any semantic or syntactic errors found after configured delay. Not applicable when using the language server.
400
-
| Properties | Description |
401
-
| --- | --- |
402
-
|`delay`| The number of milliseconds to delay before execution. Resets with each keystroke. <br/> Default: `500`|
403
-
|`enabled`| If true, runs gotype on the file currently being edited and reports any semantic or syntactic errors found. Disabled when the language server is enabled. <br/> Default: `false`|
404
-
405
-
Default:
406
-
```
407
-
{
408
-
"delay" : 500,
409
-
"enabled" : false,
410
-
}
411
-
```
412
348
### `go.logging.level`
413
349
414
350
The logging level the extension logs at, defaults to 'error'<br/>
@@ -555,32 +491,14 @@ Trace the communication between VS Code and the Go language server.<br/>
Code completion without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`) and use [`gopls's `ui.completion.usePlaceholders` setting](https://github.com/golang/vscode-go/wiki/settings#uicompletionuseplaceholders) instead.
561
-
Complete functions with their parameter signature, including the variable type. Not propagated to the language server.
Code completion without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`) and use [`gopls's `ui.completion.usePlaceholders` setting](https://github.com/golang/vscode-go/wiki/settings#uicompletionuseplaceholders) instead.
567
-
Complete functions with their parameter signature, excluding the variable types. Use `gopls.usePlaceholders` when using the language server.
When enabled, the extension automatically checks the Go proxy if there are updates available for Go and the Go tools (at present, only gopls) it depends on and prompts the user accordingly
574
-
575
-
Default: `true`
576
494
### `go.useLanguageServer`
577
495
578
496
Enable intellisense, code navigation, refactoring, formatting & diagnostics for Go. The features are powered by the Go language server "gopls".
579
497
580
498
Default: `true`
581
499
### `go.vetFlags`
582
500
583
-
Flags to pass to `go tool vet` (e.g. ["-all", "-shadow"])
501
+
Flags to pass to `go tool vet` (e.g. ["-all", "-shadow"]). Not applicable when using the language server's diagnostics.
584
502
### `go.vetOnSave`
585
503
586
504
Vets code on file save using 'go tool vet'. Not applicable when using the language server's diagnostics. See 'go.languageServerExperimentalFeatures.diagnostics' setting.<br/>
Copy file name to clipboardexpand all lines: package.json
+1-120
Original file line number
Diff line number
Diff line change
@@ -1229,7 +1229,7 @@
1229
1229
"type": "string"
1230
1230
},
1231
1231
"default": [],
1232
-
"description": "Flags to pass to `go tool vet` (e.g. [\"-all\", \"-shadow\"])",
1232
+
"description": "Flags to pass to `go tool vet` (e.g. [\"-all\", \"-shadow\"]). Not applicable when using the language server's diagnostics.",
1233
1233
"scope": "resource"
1234
1234
},
1235
1235
"go.formatTool": {
@@ -1513,72 +1513,6 @@
1513
1513
"description": "Environment variables that will be passed to the tools that run the Go tools (e.g. CGO_CFLAGS) and debuggee process launched by Delve. Format as string key:value pairs. When debugging, merged with `envFile` and `env` values with precedence `env` > `envFile` > `go.toolsEnvVars`.",
1514
1514
"scope": "resource"
1515
1515
},
1516
-
"go.gocodeFlags": {
1517
-
"type": "array",
1518
-
"items": {
1519
-
"type": "string"
1520
-
},
1521
-
"default": [
1522
-
"-builtin",
1523
-
"-ignore-case",
1524
-
"-unimported-packages"
1525
-
],
1526
-
"description": "Additional flags to pass to gocode. Not applicable when using the language server.",
1527
-
"scope": "resource",
1528
-
"markdownDeprecationMessage": "`gocode` is deprecated by the Go language server. Enable the Go language server (`#go.useLanguageServer#`)."
1529
-
},
1530
-
"go.gocodeAutoBuild": {
1531
-
"type": "boolean",
1532
-
"default": false,
1533
-
"description": "Enable gocode's autobuild feature. Not applicable when using the language server.",
1534
-
"scope": "resource",
1535
-
"markdownDeprecationMessage": "`gocode` is deprecated by the Go language server. Enable the Go language server (`#go.useLanguageServer#`)."
1536
-
},
1537
-
"go.gocodePackageLookupMode": {
1538
-
"type": "string",
1539
-
"enum": [
1540
-
"go",
1541
-
"gb",
1542
-
"bzl"
1543
-
],
1544
-
"default": "go",
1545
-
"description": "Used to determine the Go package lookup rules for completions by gocode. Not applicable when using the language server.",
1546
-
"scope": "resource",
1547
-
"markdownDeprecationMessage": "`gocode` is deprecated by the Go language server. Enable the Go language server (`#go.useLanguageServer#`)."
1548
-
},
1549
-
"go.useCodeSnippetsOnFunctionSuggest": {
1550
-
"type": "boolean",
1551
-
"default": false,
1552
-
"description": "Complete functions with their parameter signature, including the variable type. Not propagated to the language server.",
1553
-
"scope": "resource",
1554
-
"markdownDeprecationMessage": "Code completion without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`) and use [`gopls's `ui.completion.usePlaceholders` setting](https://github.com/golang/vscode-go/wiki/settings#uicompletionuseplaceholders) instead."
"description": "Complete functions with their parameter signature, excluding the variable types. Use `gopls.usePlaceholders` when using the language server.",
1560
-
"scope": "resource",
1561
-
"markdownDeprecationMessage": "Code completion without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`) and use [`gopls's `ui.completion.usePlaceholders` setting](https://github.com/golang/vscode-go/wiki/settings#uicompletionuseplaceholders) instead."
1562
-
},
1563
-
"go.autocompleteUnimportedPackages": {
1564
-
"type": "boolean",
1565
-
"default": false,
1566
-
"description": "Include unimported packages in auto-complete suggestions. Not applicable when using the language server.",
1567
-
"scope": "resource",
1568
-
"markdownDeprecationMessage": "Code completion without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`)."
1569
-
},
1570
-
"go.docsTool": {
1571
-
"type": "string",
1572
-
"default": "godoc",
1573
-
"description": "Pick 'godoc' or 'gogetdoc' to get documentation. Not applicable when using the language server.",
1574
-
"scope": "resource",
1575
-
"enum": [
1576
-
"godoc",
1577
-
"gogetdoc",
1578
-
"guru"
1579
-
],
1580
-
"markdownDeprecationMessage": "Documentation support without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`)."
1581
-
},
1582
1516
"go.useLanguageServer": {
1583
1517
"type": "boolean",
1584
1518
"default": true,
@@ -1638,26 +1572,6 @@
1638
1572
"description": "Automatically update the tools used by the extension, without prompting the user.",
1639
1573
"scope": "resource"
1640
1574
},
1641
-
"go.useGoProxyToCheckForToolUpdates": {
1642
-
"type": "boolean",
1643
-
"default": true,
1644
-
"description": "When enabled, the extension automatically checks the Go proxy if there are updates available for Go and the Go tools (at present, only gopls) it depends on and prompts the user accordingly",
"description": "If false, the import statements will be excluded while using the Go to Symbol in File feature. Not applicable when using the language server.",
1651
-
"scope": "resource",
1652
-
"markdownDeprecationMessage": "Code navigation without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`)."
1653
-
},
1654
-
"go.gotoSymbol.includeGoroot": {
1655
-
"type": "boolean",
1656
-
"default": false,
1657
-
"description": "If false, the standard library located at $GOROOT will be excluded while using the Go to Symbol in File feature. Not applicable when using the language server.",
1658
-
"scope": "resource",
1659
-
"markdownDeprecationMessage": "Code navigation without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`)."
1660
-
},
1661
1575
"go.enableCodeLens": {
1662
1576
"type": "object",
1663
1577
"properties": {
@@ -1721,29 +1635,6 @@
1721
1635
"description": "Tags and options configured here will be used by the Add Tags command to add tags to struct fields. If promptForTags is true, then user will be prompted for tags and options. By default, json tags are added.",
1722
1636
"scope": "resource"
1723
1637
},
1724
-
"go.liveErrors": {
1725
-
"type": "object",
1726
-
"properties": {
1727
-
"enabled": {
1728
-
"type": "boolean",
1729
-
"default": false,
1730
-
"description": "If true, runs gotype on the file currently being edited and reports any semantic or syntactic errors found. Disabled when the language server is enabled."
1731
-
},
1732
-
"delay": {
1733
-
"type": "number",
1734
-
"default": 500,
1735
-
"description": "The number of milliseconds to delay before execution. Resets with each keystroke."
1736
-
}
1737
-
},
1738
-
"additionalProperties": false,
1739
-
"default": {
1740
-
"enabled": false,
1741
-
"delay": 500
1742
-
},
1743
-
"description": "Use gotype on the file currently being edited and report any semantic or syntactic errors found after configured delay. Not applicable when using the language server.",
1744
-
"scope": "resource",
1745
-
"markdownDeprecationMessage": "Real-time diagnostics without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`)."
1746
-
},
1747
1638
"go.removeTags": {
1748
1639
"type": "object",
1749
1640
"properties": {
@@ -1904,16 +1795,6 @@
1904
1795
"description": "Experimental Feature: Enable/Disable entries from the context menu in the editor.",
1905
1796
"scope": "resource"
1906
1797
},
1907
-
"go.gotoSymbol.ignoreFolders": {
1908
-
"type": "array",
1909
-
"items": {
1910
-
"type": "string"
1911
-
},
1912
-
"default": [],
1913
-
"description": "Folder names (not paths) to ignore while using Go to Symbol in Workspace feature. Not applicable when using the language server.",
1914
-
"scope": "resource",
1915
-
"markdownDeprecationMessage": "Code navigation without the language server is deprecated. Enable the Go language server (`#go.useLanguageServer#`)."
0 commit comments