Skip to content

Commit

Permalink
package.json: update gopls, dlv-dap versions
Browse files Browse the repository at this point in the history
$ 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]>
  • Loading branch information
hyangah committed Aug 4, 2021
1 parent d1d61bc commit 76a9457
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 11 deletions.
25 changes: 23 additions & 2 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,15 @@ Default: `true`
for template files.


Default: `false`
### `build.experimentalUseInvalidMetadata`

(Experimental) experimentalUseInvalidMetadata enables gopls to fall back on outdated
package metadata to provide editor features if the go command fails to
load packages for some reason (like an invalid go.mod file). This will
eventually be the default behavior, and this setting will be removed.


Default: `false`
### `build.experimentalWorkspaceModule`

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

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


Default: `"250ms"`
### `ui.diagnostic.experimentalWatchedFileDelay`

(Experimental) experimentalWatchedFileDelay controls the amount of time that gopls waits
for additional workspace/didChangeWatchedFiles notifications to arrive,
before processing all such notifications in a single batch. This is
intended for use by LSP clients that don't support their own batching of
file system notifications.

This option must be set to a valid duration string, for example `"100ms"`.


Default: `"0s"`
### `ui.diagnostic.staticcheck`

(Experimental) staticcheck enables additional analyses from staticcheck.io.
Expand Down
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1875,6 +1875,12 @@
"default": false,
"scope": "resource"
},
"build.experimentalUseInvalidMetadata": {
"type": "boolean",
"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",
"default": false,
"scope": "resource"
},
"build.experimentalWorkspaceModule": {
"type": "boolean",
"markdownDescription": "(Experimental) experimentalWorkspaceModule opts a user into the experimental support\nfor multi-module workspaces.\n",
Expand Down Expand Up @@ -2222,12 +2228,18 @@
}
}
},
"ui.diagnostic.experimentalDiagnosticsDelay": {
"ui.diagnostic.diagnosticsDelay": {
"type": "string",
"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",
"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",
"default": "250ms",
"scope": "resource"
},
"ui.diagnostic.experimentalWatchedFileDelay": {
"type": "string",
"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",
"default": "0s",
"scope": "resource"
},
"ui.diagnostic.staticcheck": {
"type": "boolean",
"markdownDescription": "(Experimental) staticcheck enables additional analyses from staticcheck.io.\n",
Expand Down
14 changes: 7 additions & 7 deletions src/goToolsInformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ export const allToolsInformation: { [key: string]: Tool } = {
description: 'Language Server from Google',
usePrereleaseInPreviewMode: true,
minimumGoVersion: semver.coerce('1.12'),
latestVersion: semver.parse('v0.7.0'),
latestVersionTimestamp: moment('2021-06-08', 'YYYY-MM-DD'),
latestPrereleaseVersion: semver.parse('v0.7.0'),
latestPrereleaseVersionTimestamp: moment('2021-06-08', 'YYYY-MM-DD')
latestVersion: semver.parse('v0.7.1'),
latestVersionTimestamp: moment('2021-08-02', 'YYYY-MM-DD'),
latestPrereleaseVersion: semver.parse('v0.7.1'),
latestPrereleaseVersionTimestamp: moment('2021-08-02', 'YYYY-MM-DD')
},
'dlv': {
name: 'dlv',
Expand All @@ -223,10 +223,10 @@ export const allToolsInformation: { [key: string]: Tool } = {
replacedByGopls: false,
isImportant: true,
description: 'Go debugger & debug adapter (Delve DAP)',
defaultVersion: 'v1.7.1-0.20210729173401-89ed5a0b1972', // pinned version
defaultVersion: 'v1.7.1-0.20210804080032-f95340ae1bf9', // pinned version
minimumGoVersion: semver.coerce('1.12'), // dlv requires 1.12+ for build
latestVersion: semver.parse('v1.7.1-0.20210729173401-89ed5a0b1972'),
latestVersionTimestamp: moment('2021-07-29', 'YYYY-MM-DD')
latestVersion: semver.parse('v1.7.1-0.20210804080032-f95340ae1bf9'),
latestVersionTimestamp: moment('2021-08-04', 'YYYY-MM-DD')
},
'fillstruct': {
name: 'fillstruct',
Expand Down

0 comments on commit 76a9457

Please sign in to comment.