Skip to content

Commit 76a9457

Browse files
committed
package.json: update gopls, dlv-dap versions
$ go run ./tools/generate.go --tools --gopls The tool picked up gopls settings based on gopls v0.7.1 and updated latest gopls, dlv-dap versions. Change-Id: I02686d1148685bc07ce82c310264d9cf97274c6f Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/339776 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
1 parent d1d61bc commit 76a9457

File tree

3 files changed

+44
-11
lines changed

3 files changed

+44
-11
lines changed

docs/settings.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,15 @@ Default: `true`
555555
for template files.
556556

557557

558+
Default: `false`
559+
### `build.experimentalUseInvalidMetadata`
560+
561+
(Experimental) experimentalUseInvalidMetadata enables gopls to fall back on outdated
562+
package metadata to provide editor features if the go command fails to
563+
load packages for some reason (like an invalid go.mod file). This will
564+
eventually be the default behavior, and this setting will be removed.
565+
566+
558567
Default: `false`
559568
### `build.experimentalWorkspaceModule`
560569

@@ -727,9 +736,9 @@ that should be reported by the gc_details command.
727736
| `escape` | `"escape"` controls diagnostics about escape choices. <br/> <br/> Default: `true` |
728737
| `inline` | `"inline"` controls diagnostics about inlining choices. <br/> <br/> Default: `true` |
729738
| `nil` | `"nil"` controls nil checks. <br/> <br/> Default: `true` |
730-
### `ui.diagnostic.experimentalDiagnosticsDelay`
739+
### `ui.diagnostic.diagnosticsDelay`
731740

732-
(Experimental) experimentalDiagnosticsDelay controls the amount of time that gopls waits
741+
(Advanced) diagnosticsDelay controls the amount of time that gopls waits
733742
after the most recent file modification before computing deep diagnostics.
734743
Simple diagnostics (parsing and type-checking) are always run immediately
735744
on recently modified packages.
@@ -738,6 +747,18 @@ This option must be set to a valid duration string, for example `"250ms"`.
738747

739748

740749
Default: `"250ms"`
750+
### `ui.diagnostic.experimentalWatchedFileDelay`
751+
752+
(Experimental) experimentalWatchedFileDelay controls the amount of time that gopls waits
753+
for additional workspace/didChangeWatchedFiles notifications to arrive,
754+
before processing all such notifications in a single batch. This is
755+
intended for use by LSP clients that don't support their own batching of
756+
file system notifications.
757+
758+
This option must be set to a valid duration string, for example `"100ms"`.
759+
760+
761+
Default: `"0s"`
741762
### `ui.diagnostic.staticcheck`
742763

743764
(Experimental) staticcheck enables additional analyses from staticcheck.io.

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,12 @@
18751875
"default": false,
18761876
"scope": "resource"
18771877
},
1878+
"build.experimentalUseInvalidMetadata": {
1879+
"type": "boolean",
1880+
"markdownDescription": "(Experimental) experimentalUseInvalidMetadata enables gopls to fall back on outdated\npackage metadata to provide editor features if the go command fails to\nload packages for some reason (like an invalid go.mod file). This will\neventually be the default behavior, and this setting will be removed.\n",
1881+
"default": false,
1882+
"scope": "resource"
1883+
},
18781884
"build.experimentalWorkspaceModule": {
18791885
"type": "boolean",
18801886
"markdownDescription": "(Experimental) experimentalWorkspaceModule opts a user into the experimental support\nfor multi-module workspaces.\n",
@@ -2222,12 +2228,18 @@
22222228
}
22232229
}
22242230
},
2225-
"ui.diagnostic.experimentalDiagnosticsDelay": {
2231+
"ui.diagnostic.diagnosticsDelay": {
22262232
"type": "string",
2227-
"markdownDescription": "(Experimental) experimentalDiagnosticsDelay controls the amount of time that gopls waits\nafter the most recent file modification before computing deep diagnostics.\nSimple diagnostics (parsing and type-checking) are always run immediately\non recently modified packages.\n\nThis option must be set to a valid duration string, for example `\"250ms\"`.\n",
2233+
"markdownDescription": "(Advanced) diagnosticsDelay controls the amount of time that gopls waits\nafter the most recent file modification before computing deep diagnostics.\nSimple diagnostics (parsing and type-checking) are always run immediately\non recently modified packages.\n\nThis option must be set to a valid duration string, for example `\"250ms\"`.\n",
22282234
"default": "250ms",
22292235
"scope": "resource"
22302236
},
2237+
"ui.diagnostic.experimentalWatchedFileDelay": {
2238+
"type": "string",
2239+
"markdownDescription": "(Experimental) experimentalWatchedFileDelay controls the amount of time that gopls waits\nfor additional workspace/didChangeWatchedFiles notifications to arrive,\nbefore processing all such notifications in a single batch. This is\nintended for use by LSP clients that don't support their own batching of\nfile system notifications.\n\nThis option must be set to a valid duration string, for example `\"100ms\"`.\n",
2240+
"default": "0s",
2241+
"scope": "resource"
2242+
},
22312243
"ui.diagnostic.staticcheck": {
22322244
"type": "boolean",
22332245
"markdownDescription": "(Experimental) staticcheck enables additional analyses from staticcheck.io.\n",

src/goToolsInformation.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ export const allToolsInformation: { [key: string]: Tool } = {
202202
description: 'Language Server from Google',
203203
usePrereleaseInPreviewMode: true,
204204
minimumGoVersion: semver.coerce('1.12'),
205-
latestVersion: semver.parse('v0.7.0'),
206-
latestVersionTimestamp: moment('2021-06-08', 'YYYY-MM-DD'),
207-
latestPrereleaseVersion: semver.parse('v0.7.0'),
208-
latestPrereleaseVersionTimestamp: moment('2021-06-08', 'YYYY-MM-DD')
205+
latestVersion: semver.parse('v0.7.1'),
206+
latestVersionTimestamp: moment('2021-08-02', 'YYYY-MM-DD'),
207+
latestPrereleaseVersion: semver.parse('v0.7.1'),
208+
latestPrereleaseVersionTimestamp: moment('2021-08-02', 'YYYY-MM-DD')
209209
},
210210
'dlv': {
211211
name: 'dlv',
@@ -223,10 +223,10 @@ export const allToolsInformation: { [key: string]: Tool } = {
223223
replacedByGopls: false,
224224
isImportant: true,
225225
description: 'Go debugger & debug adapter (Delve DAP)',
226-
defaultVersion: 'v1.7.1-0.20210729173401-89ed5a0b1972', // pinned version
226+
defaultVersion: 'v1.7.1-0.20210804080032-f95340ae1bf9', // pinned version
227227
minimumGoVersion: semver.coerce('1.12'), // dlv requires 1.12+ for build
228-
latestVersion: semver.parse('v1.7.1-0.20210729173401-89ed5a0b1972'),
229-
latestVersionTimestamp: moment('2021-07-29', 'YYYY-MM-DD')
228+
latestVersion: semver.parse('v1.7.1-0.20210804080032-f95340ae1bf9'),
229+
latestVersionTimestamp: moment('2021-08-04', 'YYYY-MM-DD')
230230
},
231231
'fillstruct': {
232232
name: 'fillstruct',

0 commit comments

Comments
 (0)