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
1bc09d8 src/goDebugConfiguration: resolve relative paths used in cwd, output, program
ac7b209 package-lock.json: npm audit fix
4574878 package.json: pick up [email protected] settings and update tools version
7ea6b76 src/goDebugConfiguration: default to dlv-dap in preview mode
e7e25d2 Revert ".github/workflows: use 'stable' version for release-nightly"
570a0a4 src/goModules.ts: open go.mod after init
936ecdf .github/workflows: use 'stable' version for release-nightly
a1d1329 src/goImport: use gopls methods to list and add contextual imports
03a8315 src/goDebugFactory.ts: fix problem with attach requests
82d2b5d src/goTest: Add command Test Function At Cursor or Test Previous
505ad8d build/all.bash: use go install for tool installation
e7c91ef package-lock.json: npm audit fix
616928d .github/workflows: use tmp dir as working dir when installing tools
ab4f21a src/goDebugConfiguration: let vscode resolve pick process
ecf30b7 src/goLanguageServer: migrate opt-out survey to Qualtrics
4cb78f6 src/goLint: handle the case where no editor is active
c5070dc CHANGELOG.md: v0.25.1 updates
b79bdf9 test/integration/goDebug.test.ts: include the debugger logging in tests
9b2b1ef src/goToolsInformation: update dlv-dap version
d88ee9b src/goDebugFactory: respond with error if dlv dap failed to start
fe7b40b src/goEnvironmentStatus: avoid TypeError for notification closed without action
f22b65a src/goLint: fix type error caused by a bug in goLint
b6a3630 src/goDebugFactory: connect after createDebugAdapterDescriptor
cbdd328 src/goSurvey: double survey probability and send half to v2 survey
4510773 src/goSurvey: increase the prompt probability to 0.03
ad1dcce test/integration/goDebug.test.ts: accept 'exception' as stopped reason
c54f5e6 package.json: set virtualWorkspaces capability to false
9fa871b src/goMain: warn users if go.goroot is set
0f4b38f tools/generate.go: update gopls and dlv-dap versions in generate
39445e1 src/goDebugConfiguration: use fileWorkspaceFolder in multi root workspace
961ab1c src/goLogging: fix the default logger
646faec package.json: use the updated workspace trust API
e8dc6c4 package.json: remove 'init' debug attribute
b9f1961 [release] Update CHANGELOG
64592bc src/debugAdapter: default path separator to '/'
a2c2efc package.json: bump dev version number to 0.26.0-dev
7340877 [release] Update CHANGELOG for v0.25.0
4bae281 src/goDebugConfiguration.ts: add substitutePath to go.delveConfig
d9fd8f0 docs: update dlv-dap.md
cea0269 test/integration/goDebug: wait for debug adapter dispose in teardown test
41c5ee9 test/integration/goDebug.test.ts: use dc.on to wait for output event
50efa73 test/integration/goDebug: modify teardown+cleanup test
8803f91 docs: update outdated lint tool documentation in features.md
6571316 .github/workflows: move dlv to dlv-dap before getting dlv again
54986cd docs/settings.md: update gopls settings
Change-Id: I6df1e8bbd836573b243fa9f290a149bc56d985a3
*`showGlobalVariables`: Show global variables in the Debug view (default: `false`).
73
+
*`debugAdapter`: Controls which debug adapter to use (default: `legacy`).
74
+
*`substitutePath`: Path mappings to apply to get from a path in the editor to a path in the compiled program (default: `[]`).
73
75
74
76
There are some common cases when you might want to tweak the Delve configurations.
75
77
@@ -113,10 +115,10 @@ showLog | If `true` and `logDest` is not set, Delve logs will be printed in t
113
115
logOutput | Comma-separated list of Delve components (`debugger`, `gdbwire`, `lldbout`, `debuglineerr`, `rpc`) that should produce debug output when `showLog` is `true`. This corresponds to `dlv`'s `--log-output` flag.
114
116
logDest | Absolute path to the delve log output file. This corresponds to `dlv`'s `--log-dest` flag, but number (used for file descriptor) is disallowed. Supported only in dlv-dap mode on Linux and Mac.
115
117
buildFlags | Build flags to pass to the Go compiler. This corresponds to `dlv`'s `--build-flags` flag.
116
-
dlvFlags | Extra flags passed to `dlv`. See `dlv help` for the full list of supported flags. This is useful when users need to pass less commonly used or new flags such as `--only-same-user`, `--check-go-version`. Note that some flags such as `--log-output`, `--log`, `--log-dest`, `--init`, `--api-version` 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.
118
+
dlvFlags | Extra flags passed to `dlv`. See `dlv help` for the full list of supported flags. This is useful when users need to pass less commonly used or new flags such as `--only-same-user`, `--check-go-version`. Note that some flags such as `--log-output`, `--log`, `--log-dest`, `--api-version` 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.
117
119
remotePath | If remote debugging (`mode`: `remote`), this should be the absolute path to the package being debugged on the remote machine. See the section on [Remote Debugging](#remote-debugging) for further details. [golang/vscode-go#45](https://github.com/golang/vscode-go/issues/45) is also relevant. Becomes the first mapping in substitutePath.
118
120
substitutePath | An array of mappings from an absolute local path to an absolute remote path that is used by the debuggee. The debug adapter will replace the local path with the remote path in all of the calls. The mappings are applied in order, and the first matching mapping is used. This can be used to map files that have moved since the program was built, different remote paths, and symlinked files or directories. This is intended to be equivalent to the [substitute-path](https://github.com/go-delve/delve/tree/master/Documentation/cli#config) configuration, and will eventually configure substitute-path in Delve directly.
119
-
cwd | The working directory to be used in running the program. If remote debugging (`mode`: `remote`), this should be the absolute path to the working directory being debugged on the local machine. See the section on [Remote Debugging](#remote-debugging) for further details. [golang/vscode-go#45](https://github.com/golang/vscode-go/issues/45) is also relevant.
121
+
cwd | The working directory to be used in running the program. If remote debugging (`mode`: `remote`), this should be the absolute path to the working directory being debugged on the local machine. The extension defaults to the workspace folder, or the workspace folder of the open file in multi root workspaces. See the section on [Remote Debugging](#remote-debugging) for further details. [golang/vscode-go#45](https://github.com/golang/vscode-go/issues/45) is also relevant.
120
122
processId | This is the process ID of the executable you want to debug. Applicable only when using the `attach` request in `local` mode. By setting this to the command name of the process, `${command:pickProcess}`, or`${command:pickGoProcess}` a quick pick menu will show a list of processes to choose from.
@@ -161,7 +163,8 @@ Note that it is not recommended to debug optimized executables as Delve may not
161
163
162
164
Any property in the launch configuration that requires a file path can be specified in terms of [VS Code variables]. Here are some useful ones to know:
163
165
164
-
*`${workspaceFolder}` refers to the root of the workspace opened in VS Code.
166
+
*`${workspaceFolder}` refers to the root of the workspace opened in VS Code. If using a multi root workspace, you must specify the folder name `${workspaceFolder:folderName}`
167
+
*`${fileWorkspaceFolder}` refers to the the current opened file's workspace folder.
165
168
*`${file}` refers to the currently opened file.
166
169
*`${fileDirname}` refers to the directory containing the currently opened file. This is typically also the name of the Go package containing this file, and as such, can be used to debug the currently opened package.
167
170
@@ -454,4 +457,4 @@ This extension does not provide general support for debugging projects containin
Copy file name to clipboardExpand all lines: docs/dlv-dap.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
@@ -135,7 +135,7 @@ The logging will appear in the `Go Debug` output channel (Command Palette -> "Vi
135
135
If you are having issues with seeing logs and or suspect problems in extension's integration, you can start Delve DAP server from a separate terminal and configure the extension to directly connect to it.
Copy file name to clipboardExpand all lines: docs/features.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ The vet tool used is the one provided by the `go` command: [`go vet`](https://go
187
187
188
188
Much like vet errors, lint errors can also be shown on save. This behavior is configurable through the [`"go.lintOnSave"`](settings.md#go.lintOnSave) setting.
189
189
190
-
The default lint tool is the one provided by the `go` command: `go lint`. However, custom lint tools can be easily used instead by configuring the [`"go.lintTool"`](settings.md#go.lintTool) setting. [`staticcheck`], [`golangci-lint`], and [`revive`] are supported.
190
+
The default lint tool is [`staticcheck`]. However, custom lint tools can be easily used instead by configuring the [`"go.lintTool"`](settings.md#go.lintTool) setting. [`golint`], [`golangci-lint`], and [`revive`] are also supported.
191
191
192
192
For a complete overview of linter options, see the [documentation for diagnostic tools](tools.md#diagnostics).
193
193
@@ -221,5 +221,6 @@ Export your current file to the [Go Playground](https://play.golang.org) via the
Copy file name to clipboardExpand all lines: docs/settings.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ Delve settings that applies to all debugging sessions. Debug configuration in th
146
146
|`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: `"legacy"`|
147
147
|`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>} ```|
148
148
|`showGlobalVariables`| Boolean value to indicate whether global package variables should be shown in the variables pane or not. <br/> Default: `false`|
149
+
|`substitutePath`| An array of mappings from a local path to the remote path that is used by the debuggee. The debug adapter will replace the local path with the remote path in all of the calls. Overriden by remotePath. |
149
150
150
151
Default:
151
152
```
@@ -160,6 +161,7 @@ Default:
160
161
"maxVariableRecurse" : 1,
161
162
},
162
163
"showGlobalVariables" : false,
164
+
"substitutePath" : [],
163
165
}
164
166
```
165
167
### `go.disableConcurrentTests`
@@ -542,6 +544,13 @@ comprehensively test.
542
544
543
545
544
546
Default: `true`
547
+
### `build.experimentalTemplateSupport`
548
+
549
+
(Experimental) experimentalTemplateSupport opts into the experimental support
550
+
for template files.
551
+
552
+
553
+
Default: `false`
545
554
### `build.experimentalWorkspaceModule`
546
555
547
556
(Experimental) experimentalWorkspaceModule opts a user into the experimental support
@@ -625,7 +634,7 @@ Default: `"100ms"`
625
634
such as "someSlice.sort!".
626
635
627
636
628
-
Default: `false`
637
+
Default: `true`
629
638
### `ui.completion.matcher`
630
639
631
640
(Advanced) matcher sets the algorithm that is used when calculating completion
0 commit comments