Skip to content

Commit 44e2d4d

Browse files
committed
package.json: add config to hide system goroutines in debug
This change includes the configuration for hiding the system goroutines in a debug session. It also sets the default value in go nightly to true. The setting of go.useLanguage server in nightly to true is also removed by this change, since it is not the default everywhere. Change-Id: I43b45b7743e6b3b31a41da1462e50669846b0f0d Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/359402 Trust: Suzy Mueller <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
1 parent 18e3fca commit 44e2d4d

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

build/all.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ prepare_nightly() {
8181
.displayName="Go Nightly" |
8282
.publisher="golang" |
8383
.description="Rich Go language support for Visual Studio Code (Nightly)" |
84-
.contributes.configuration.properties."go.useLanguageServer".default=true
84+
.contributes.configuration.properties."go.delveConfig.hideSystemGoroutines".default=true
8585
') > /tmp/package.json && mv /tmp/package.json package.json
8686

8787
# Replace CHANGELOG.md with CHANGELOG.md + Release commit info.

docs/debugging.md

+1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ Here is the list of attributes specific to Go debugging.
246246
| `dlvFlags` | Extra flags for `dlv`. See `dlv help` for the full list of supported. Flags such as `--log-output`, `--log`, `--log-dest`, `--api-version`, `--output`, `--backend` already have corresponding properties in the debug configuration, and flags such as `--listen` and `--headless` are used internally. If they are specified in `dlvFlags`, they may be ignored or cause an error.<br/> | <center>_same as Launch_</center>|
247247
| `env` | Environment variables passed to the program.<br/> | <center>_n/a_</center> |
248248
| `envFile` | Absolute path to a file containing environment variable definitions. Multiple files can be specified by provided an array of absolute paths<br/>(Default: `${workspaceFolder}/.env`)<br/> | <center>_n/a_</center> |
249+
| `hideSystemGoroutines` | Boolean value to indicate whether system goroutines should be hidden from call stack view.<br/>(Default: `false`)<br/> | <center>_same as Launch_</center>|
249250
| `host` | In legacy mode, this will only apply to remote-attach configurations, which will look for "dlv ... --headless --listen=<host>:<port>" server started externally. In dlv-dap mode (which does not yet support remote-attach), this will apply to all other configurations. The extension will try to connect to an external server started with "dlv dap --listen=<host>:<port>" to ask it to launch/attach to the target process.<br/>(Default: `"127.0.0.1"`)<br/> | <center>_same as Launch_</center>|
250251
| `logDest` | dlv's `--log-dest` flag. See `dlv log` for details. Number argument is not allowed. Supported only in `dlv-dap` mode, and on Linux and Mac OS.<br/> | dlv's `--log-dest` flag. See `dlv log` for details. Number argument is not allowed. Supported only in `dlv-dap` mode and on Linux and Mac OS.<br/> |
251252
| `logOutput` | Comma separated list of components that should produce debug output. Maps to dlv's `--log-output` flag. Check `dlv log` for details.<br/><p>Allowed Values: `"debugger"`, `"gdbwire"`, `"lldbout"`, `"debuglineerr"`, `"rpc"`, `"dap"`<br/>(Default: `"debugger"`)<br/> | <center>_same as Launch_</center>|

docs/settings.md

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Delve settings that applies to all debugging sessions. Debug configuration in th
146146
| `debugAdapter` | Select which debug adapter to use by default. This is also used for choosing which debug adapter to use when no launch.json is present and with codelenses. <br/> Allowed Options: `legacy`, `dlv-dap` <br/> Default: `"dlv-dap"` |
147147
| `dlvFlags` | Extra flags for `dlv`. See `dlv help` for the full list of supported. Flags such as `--log-output`, `--log`, `--log-dest`, `--api-version`, `--output`, `--backend` already have corresponding properties in the debug configuration, and flags such as `--listen` and `--headless` are used internally. If they are specified in `dlvFlags`, they may be ignored or cause an error. |
148148
| `dlvLoadConfig` | LoadConfig describes to delve, how to load values from target's memory. Ignored by 'dlv-dap'. <br/> Default: ``` { <pre>"followPointers" : true,<br/>"maxArrayValues" : 64,<br/>"maxStringLen" : 64,<br/>"maxStructFields" : -1,<br/>"maxVariableRecurse" : 1,</pre>} ``` |
149+
| `hideSystemGoroutines` | Boolean value to indicate whether system goroutines should be hidden from call stack view. <br/> Default: `false` |
149150
| `logOutput` | Comma separated list of components that should produce debug output. Maps to dlv's `--log-output` flag. Check `dlv log` for details. <br/> Allowed Options: `debugger`, `gdbwire`, `lldbout`, `debuglineerr`, `rpc`, `dap` <br/> Default: `"debugger"` |
150151
| `showGlobalVariables` | Boolean value to indicate whether global package variables should be shown in the variables pane or not. <br/> Default: `false` |
151152
| `showLog` | Show log output from the delve debugger. Maps to dlv's `--log` flag. <br/> Default: `false` |

package.json

+15
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,11 @@
779779
"type": "boolean",
780780
"default": false,
781781
"description": "Boolean value to indicate whether register variables should be shown in the variables pane or not."
782+
},
783+
"hideSystemGoroutines": {
784+
"type": "boolean",
785+
"default": false,
786+
"description": "Boolean value to indicate whether system goroutines should be hidden from call stack view."
782787
}
783788
}
784789
},
@@ -981,6 +986,11 @@
981986
"type": "boolean",
982987
"default": false,
983988
"description": "Boolean value to indicate whether register variables should be shown in the variables pane or not."
989+
},
990+
"hideSystemGoroutines": {
991+
"type": "boolean",
992+
"default": false,
993+
"description": "Boolean value to indicate whether system goroutines should be hidden from call stack view."
984994
}
985995
}
986996
}
@@ -1837,6 +1847,11 @@
18371847
"default": false,
18381848
"description": "Boolean value to indicate whether register variables should be shown in the variables pane or not."
18391849
},
1850+
"hideSystemGoroutines": {
1851+
"type": "boolean",
1852+
"default": false,
1853+
"description": "Boolean value to indicate whether system goroutines should be hidden from call stack view."
1854+
},
18401855
"showLog": {
18411856
"type": "boolean",
18421857
"description": "Show log output from the delve debugger. Maps to dlv's `--log` flag.",

0 commit comments

Comments
 (0)