Skip to content

Commit 14b032b

Browse files
committed
extension: update gopls v0.22.0-pre.4 settings
This is an automated CL which updates the gopls version and settings. For golang/go#79000 Change-Id: I3128669d08398007f7131d3c1729023f727f3117 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/778220 Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Hongxiang Jiang <hxjiang@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Gopher Robot <gobot@golang.org>
1 parent faa454e commit 14b032b

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

docs/settings.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,21 @@ matching a glob specified here will trigger a reload of the workspace.
661661
This setting need only be customized in environments with a custom
662662
GOPACKAGESDRIVER.
663663

664+
### `fileWatcher`
665+
666+
(Experimental) fileWatcher specifies the server-side file watching strategy used by gopls.
667+
668+
By default, this is set to "off", meaning gopls relies exclusively on the
669+
language client (e.g., the editor) to send file change notifications.
670+
671+
Available options:
672+
- "off" : Client-driven watching (default)
673+
- "fsnotify" : OS-level event notifications
674+
- "poll" : Periodic directory scanning
675+
<br/>
676+
Allowed Options: `fsnotify`, `off`, `poll`
677+
678+
Default: `"off"`
664679
### `formatting.gofumpt`
665680

666681
gofumpt indicates if we should run gofumpt formatting.

extension/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,22 @@
21002100
"default": [],
21012101
"scope": "resource"
21022102
},
2103+
"fileWatcher": {
2104+
"type": "string",
2105+
"markdownDescription": "(Experimental) fileWatcher specifies the server-side file watching strategy used by gopls.\n\nBy default, this is set to \"off\", meaning gopls relies exclusively on the\nlanguage client (e.g., the editor) to send file change notifications.\n\nAvailable options:\n - \"off\" : Client-driven watching (default)\n - \"fsnotify\" : OS-level event notifications\n - \"poll\" : Periodic directory scanning\n",
2106+
"enum": [
2107+
"fsnotify",
2108+
"off",
2109+
"poll"
2110+
],
2111+
"markdownEnumDescriptions": [
2112+
"",
2113+
"",
2114+
""
2115+
],
2116+
"default": "off",
2117+
"scope": "resource"
2118+
},
21032119
"formatting.gofumpt": {
21042120
"type": "boolean",
21052121
"markdownDescription": "gofumpt indicates if we should run gofumpt formatting.\n",

0 commit comments

Comments
 (0)