Skip to content

Commit e2a7fb5

Browse files
committed
docs/debugging.md: fix the default of envFile
From its beginning (microsoft/vscode-go@6c8252d) the implementation never used the documented default. Correct the documentation to reflect the actual behavior. Fixes #2128 Change-Id: Ie3e861966fc5f7d9cab54e2d813a200eed53b892 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/395795 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Polina Sokolova <[email protected]>
1 parent d7f9578 commit e2a7fb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/debugging.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Here is the list of attributes specific to Go debugging.
269269
| `debugAdapter` | Select which debug adapter to use with this launch configuration.<br/><p>Allowed Values: `"legacy"`, `"dlv-dap"`<br/>(Default: `dlv-dap`)<br/> | <center>_same as Launch_</center>|
270270
| `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>|
271271
| `env` | Environment variables passed to the program.<br/> | <center>_n/a_</center> |
272-
| `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> |
272+
| `envFile` | Absolute path to a file containing environment variable definitions. Multiple files can be specified by provided an array of absolute paths<br/> | <center>_n/a_</center> |
273273
| `hideSystemGoroutines` | Boolean value to indicate whether system goroutines should be hidden from call stack view.<br/>(Default: `false`)<br/> | <center>_same as Launch_</center>|
274274
| `host` | When applied to remote-attach configurations, will look for "dlv ... --headless --listen=<host>:<port>" server started externally. In dlv-dap mode this will apply to all other configurations as well. 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/> | When applied to remote-attach configurations, will look for "dlv ... --headless --listen=<host>:<port>" server started externally. In dlv-dap mode, this will apply to all other configurations as well. 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/> |
275275
| `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/> |

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@
731731
"type": "string"
732732
},
733733
"description": "Absolute path to a file containing environment variable definitions. Multiple files can be specified by provided an array of absolute paths",
734-
"default": "${workspaceFolder}/.env"
734+
"default": ""
735735
},
736736
"backend": {
737737
"type": "string",

0 commit comments

Comments
 (0)