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
6c7bfb3 src/debugAdapter: report that next is automatically cancelled if interrupted
f38e348 src/goLanguageServer: propagate go.buildFlags,buildTags to gopls
dbc8da9 src/goDebug: fix drive casing when substituting paths
2f72921 test/integration/goDebug: disable a substitutePath test that times out
Change-Id: I1f808808aca0160ad51f1b8a0f809365d3f8513d
Copy file name to clipboardExpand all lines: docs/settings.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ Default: `false`
79
79
80
80
### `go.buildFlags`
81
81
82
-
Flags to `go build`/`go test` used during build-on-save or running tests. (e.g. ["-ldflags='-s'"])
82
+
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.buildFlags` is not specified.
83
83
84
84
### `go.buildOnSave`
85
85
@@ -91,7 +91,7 @@ Default: `package`
91
91
92
92
### `go.buildTags`
93
93
94
-
The Go build tags to use for all commands, that support a `-tags '...'` argument. When running tests, go.testTags will be used instead if it was set.
94
+
The Go build tags to use for all commands, that support a `-tags '...'` argument. When running tests, go.testTags will be used instead if it was set. This is propagated to the language server if `gopls.buildFlags` is not specified.
95
95
96
96
Default: ``
97
97
@@ -617,6 +617,8 @@ buildFlags is the set of flags passed on to the build system when invoked.
617
617
It is applied to queries like `go list`, which is used when discovering files.
618
618
The most common use is to set `-tags`.
619
619
620
+
If unspecified, values of `go.buildFlags, go.buildTags` will be propagated.
621
+
620
622
621
623
#### `codelenses`
622
624
codelenses overrides the enabled/disabled state of code lenses. See the "Code Lenses"
@@ -626,7 +628,7 @@ Example Usage:
626
628
```json5
627
629
"gopls": {
628
630
...
629
-
"codelenses": {
631
+
"codelens": {
630
632
"generate":false, // Don't show the `go generate` lens.
631
633
"gc_details":true// Show a code lens toggling the display of gc's choices.
Copy file name to clipboardExpand all lines: package.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -847,13 +847,13 @@
847
847
"type": "string"
848
848
},
849
849
"default": [],
850
-
"description": "Flags to `go build`/`go test` used during build-on-save or running tests. (e.g. [\"-ldflags='-s'\"])",
850
+
"description": "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.buildFlags` is not specified.",
851
851
"scope": "resource"
852
852
},
853
853
"go.buildTags": {
854
854
"type": "string",
855
855
"default": "",
856
-
"description": "The Go build tags to use for all commands, that support a `-tags '...'` argument. When running tests, go.testTags will be used instead if it was set.",
856
+
"description": "The Go build tags to use for all commands, that support a `-tags '...'` argument. When running tests, go.testTags will be used instead if it was set. This is propagated to the language server if `gopls.buildFlags` is not specified.",
857
857
"scope": "resource"
858
858
},
859
859
"go.testTags": {
@@ -1693,7 +1693,7 @@
1693
1693
"properties": {
1694
1694
"buildFlags": {
1695
1695
"type": "array",
1696
-
"markdownDescription": "buildFlags is the set of flags passed on to the build system when invoked.\nIt is applied to queries like `go list`, which is used when discovering files.\nThe most common use is to set `-tags`.\n",
1696
+
"markdownDescription": "buildFlags is the set of flags passed on to the build system when invoked.\nIt is applied to queries like `go list`, which is used when discovering files.\nThe most common use is to set `-tags`.\n\nIf unspecified, values of `go.buildFlags, go.buildTags` will be propagated.\n",
1697
1697
"default": [],
1698
1698
"scope": "resource"
1699
1699
},
@@ -1755,7 +1755,7 @@
1755
1755
},
1756
1756
"codelenses": {
1757
1757
"type": "object",
1758
-
"markdownDescription": "codelenses overrides the enabled/disabled state of code lenses. See the \"Code Lenses\"\nsection of settings.md for the list of supported lenses.\n\nExample Usage:\n```json5\n\"gopls\": {\n...\n\"codelenses\": {\n\"generate\": false, // Don't show the `go generate` lens.\n\"gc_details\": true // Show a code lens toggling the display of gc's choices.\n }\n...\n}\n```\n",
1758
+
"markdownDescription": "codelenses overrides the enabled/disabled state of code lenses. See the \"Code Lenses\"\nsection of settings.md for the list of supported lenses.\n\nExample Usage:\n```json5\n\"gopls\": {\n...\n\"codelens\": {\n\"generate\": false, // Don't show the `go generate` lens.\n\"gc_details\": true // Show a code lens toggling the display of gc's choices.\n }\n...\n}\n```\n",
0 commit comments