massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-go / package.json
1 {
2   "name": "coc-go",
3   "version": "v1.0.0",
4   "description": "gopls extension for coc",
5   "author": "Josa Gesell <josa@gesell.me>",
6   "license": "MIT",
7   "main": "lib/extension.js",
8   "repository": {
9     "type": "git",
10     "url": "https://github.com/josa42/coc-go.git"
11   },
12   "engines": {
13     "coc": "^0.0.80",
14     "node": ">=12"
15   },
16   "keywords": [
17     "coc.nvim",
18     "languageserver",
19     "gopls",
20     "go",
21     "golang",
22     "vim",
23     "neovim"
24   ],
25   "scripts": {
26     "test": "true || mocha --require ts-node/register '**/*.test.ts'",
27     "test:watch": "mocha --watch --watch-files '**/*.ts' --require ts-node/register '**/*.test.ts'",
28     "clean": "rimraf lib",
29     "build": "tsc -p tsconfig.json",
30     "build:watch": "tsc --watch -p tsconfig.json",
31     "prepare": "yarn clean && yarn build",
32     "link:add": "node ./scripts/link.js add",
33     "link:remove": "node ./scripts/link.js remove",
34     "update": "yarn run update:snippets && yarn run update:options && yarn run update:readme && yarn run update:readme",
35     "update:snippets": "./scripts/update-snippets.js",
36     "update:options": "./scripts/update-options.sh && node ./scripts/update-options-interface.js",
37     "update:commands": "./scripts/update-commands.js",
38     "update:readme": "./scripts/update-tables.sh",
39     "lint": "eslint . --ext .ts,.js",
40     "link": "coc-dev link",
41     "unlink": "coc-dev unlink"
42   },
43   "activationEvents": [
44     "onLanguage:go",
45     "onLanguage:gomod",
46     "onCommand:go.install.gomodifytags",
47     "onCommand:go.install.goplay",
48     "onCommand:go.install.gopls",
49     "onCommand:go.install.gotests",
50     "onCommand:go.install.impl",
51     "onCommand:go.install.tools",
52     "onCommand:go.version"
53   ],
54   "contributes": {
55     "rootPatterns": [
56       {
57         "filetype": "go",
58         "patterns": [
59           "go.mod"
60         ]
61       },
62       {
63         "filetype": "gomod",
64         "patterns": [
65           "go.mod"
66         ]
67       }
68     ],
69     "configuration": {
70       "type": "object",
71       "title": "gols",
72       "properties": {
73         "go.enable": {
74           "type": "boolean",
75           "default": true,
76           "description": "Enable Go extension"
77         },
78         "go.trace.server": {
79           "type": "string",
80           "default": "off",
81           "enum": [
82             "off",
83             "messages",
84             "verbose"
85           ],
86           "description": "Trace level of gopls"
87         },
88         "go.goplsPath": {
89           "type": "string",
90           "description": "Path to `gopls` bin (Change requires `:CocRestart`)"
91         },
92         "go.goplsArgs": {
93           "type": "array",
94           "items": {
95             "type": "string"
96           },
97           "description": "Arguments passed to `gopls` (Change requires `:CocRestart`)"
98         },
99         "go.goplsEnv": {
100           "type": "object",
101           "patternProperties": {
102             "^.+$": {
103               "type": "string"
104             }
105           },
106           "description": "ENV passed to `gopls` (Change requires `:CocRestart`)"
107         },
108         "go.goplsUseDaemon": {
109           "type": "boolean",
110           "default": true,
111           "description": "Run gopls as daemon"
112         },
113         "go.disable": {
114           "type": "object",
115           "description": "Disable gopls features",
116           "default": {},
117           "properties": {
118             "workspaceFolders": {
119               "type": "boolean",
120               "default": false,
121               "description": "Disable workspaceFolders feature (Change requires `:CocRestart`)"
122             },
123             "diagnostics": {
124               "type": "boolean",
125               "default": false,
126               "description": "Disable handle diagnostics (Change requires `:CocRestart`)"
127             },
128             "completion": {
129               "type": "boolean",
130               "default": false,
131               "description": "Disable completion feature (Change requires `:CocRestart`)"
132             }
133           }
134         },
135         "go.goplsOptions": {
136           "type": "object",
137           "description": "See `gopls` documentation: https://github.com/golang/tools/blob/master/gopls/doc/settings.md",
138           "properties": {
139             "allowImplicitNetworkAccess": {
140               "type": "boolean",
141               "default": false,
142               "description": "**This setting is experimental and may be deleted.**\n\nallowImplicitNetworkAccess disables GOPROXY=off, allowing implicit module\ndownloads rather than requiring user action. This option will eventually\nbe removed.\n"
143             },
144             "allowModfileModifications": {
145               "type": "boolean",
146               "default": false,
147               "description": "**This setting is experimental and may be deleted.**\n\nallowModfileModifications disables -mod=readonly, allowing imports from\nout-of-scope modules. This option will eventually be removed.\n"
148             },
149             "analyses": {
150               "type": "object",
151               "description": "analyses specify analyses that the user would like to enable or disable.\nA map of the names of analysis passes that should be enabled/disabled.\nA full list of analyzers that gopls uses can be found\n[here](https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md).\n\nExample Usage:\n\n```json5\n...\n\"analyses\": {\n  \"unreachable\": false, // Disable the unreachable analyzer.\n  \"unusedparams\": true  // Enable the unusedparams analyzer.\n}\n...\n```\n",
152               "additionalProperties": false,
153               "patternProperties": {
154                 "^S[AT]?\\d{4}$": {
155                   "type": "boolean"
156                 }
157               },
158               "properties": {
159                 "asmdecl": {
160                   "type": "boolean",
161                   "description": "report mismatches between assembly files and Go declarations",
162                   "default": true
163                 },
164                 "assign": {
165                   "type": "boolean",
166                   "description": "check for useless assignments\nThis checker reports assignments of the form x = x or a[i] = a[i].\nThese are almost always useless, and even when they aren't they are\nusually a mistake.",
167                   "default": true
168                 },
169                 "atomic": {
170                   "type": "boolean",
171                   "description": "check for common mistakes using the sync/atomic package\nThe atomic checker looks for assignment statements of the form:\n\tx = atomic.AddUint64(&x, 1)\nwhich are not atomic.",
172                   "default": true
173                 },
174                 "atomicalign": {
175                   "type": "boolean",
176                   "description": "check for non-64-bits-aligned arguments to sync/atomic functions",
177                   "default": true
178                 },
179                 "bools": {
180                   "type": "boolean",
181                   "description": "check for common mistakes involving boolean operators",
182                   "default": true
183                 },
184                 "buildtag": {
185                   "type": "boolean",
186                   "description": "check that +build tags are well-formed and correctly located",
187                   "default": true
188                 },
189                 "cgocall": {
190                   "type": "boolean",
191                   "description": "detect some violations of the cgo pointer passing rules\nCheck for invalid cgo pointer passing.\nThis looks for code that uses cgo to call C code passing values\nwhose types are almost always invalid according to the cgo pointer\nsharing rules.\nSpecifically, it warns about attempts to pass a Go chan, map, func,\nor slice to C, either directly, or via a pointer, array, or struct.",
192                   "default": true
193                 },
194                 "composites": {
195                   "type": "boolean",
196                   "description": "check for unkeyed composite literals\nThis analyzer reports a diagnostic for composite literals of struct\ntypes imported from another package that do not use the field-keyed\nsyntax. Such literals are fragile because the addition of a new field\n(even if unexported) to the struct will cause compilation to fail.\nAs an example,\n\terr = &net.DNSConfigError{err}\nshould be replaced by:\n\terr = &net.DNSConfigError{Err: err}",
197                   "default": true
198                 },
199                 "copylocks": {
200                   "type": "boolean",
201                   "description": "check for locks erroneously passed by value\nInadvertently copying a value containing a lock, such as sync.Mutex or\nsync.WaitGroup, may cause both copies to malfunction. Generally such\nvalues should be referred to through a pointer.",
202                   "default": true
203                 },
204                 "deepequalerrors": {
205                   "type": "boolean",
206                   "description": "check for calls of reflect.DeepEqual on error values\nThe deepequalerrors checker looks for calls of the form:\n    reflect.DeepEqual(err1, err2)\nwhere err1 and err2 are errors. Using reflect.DeepEqual to compare\nerrors is discouraged.",
207                   "default": true
208                 },
209                 "errorsas": {
210                   "type": "boolean",
211                   "description": "report passing non-pointer or non-error values to errors.As\nThe errorsas analysis reports calls to errors.As where the type\nof the second argument is not a pointer to a type implementing error.",
212                   "default": true
213                 },
214                 "fieldalignment": {
215                   "type": "boolean",
216                   "description": "find structs that would use less memory if their fields were sorted\nThis analyzer find structs that can be rearranged to use less memory, and provides\na suggested edit with the optimal order.\nNote that there are two different diagnostics reported. One checks struct size,\nand the other reports \"pointer bytes\" used. Pointer bytes is how many bytes of the\nobject that the garbage collector has to potentially scan for pointers, for example:\n\tstruct { uint32; string }\nhave 16 pointer bytes because the garbage collector has to scan up through the string's\ninner pointer.\n\tstruct { string; *uint32 }\nhas 24 pointer bytes because it has to scan further through the *uint32.\n\tstruct { string; uint32 }\nhas 8 because it can stop immediately after the string pointer.\n**Disabled by default. Enable it by setting `\"analyses\": {\"fieldalignment\": true}`.**"
217                 },
218                 "httpresponse": {
219                   "type": "boolean",
220                   "description": "check for mistakes using HTTP responses\nA common mistake when using the net/http package is to defer a function\ncall to close the http.Response Body before checking the error that\ndetermines whether the response is valid:\n\tresp, err := http.Head(url)\n\tdefer resp.Body.Close()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t// (defer statement belongs here)\nThis checker helps uncover latent nil dereference bugs by reporting a\ndiagnostic for such mistakes.",
221                   "default": true
222                 },
223                 "ifaceassert": {
224                   "type": "boolean",
225                   "description": "detect impossible interface-to-interface type assertions\nThis checker flags type assertions v.(T) and corresponding type-switch cases\nin which the static type V of v is an interface that cannot possibly implement\nthe target interface T. This occurs when V and T contain methods with the same\nname but different signatures. Example:\n\tvar v interface {\n\t\tRead()\n\t}\n\t_ = v.(io.Reader)\nThe Read method in v has a different signature than the Read method in\nio.Reader, so this assertion cannot succeed.",
226                   "default": true
227                 },
228                 "infertypeargs": {
229                   "type": "boolean",
230                   "description": "check for unnecessary type arguments in call expressions\nExplicit type arguments may be omitted from call expressions if they can be\ninferred from function arguments, or from other type arguments:\nfunc f[T any](T) {}\nfunc _() {\n\tf[string](\"foo\") // string could be inferred\n}",
231                   "default": true
232                 },
233                 "loopclosure": {
234                   "type": "boolean",
235                   "description": "check references to loop variables from within nested functions\nThis analyzer checks for references to loop variables from within a\nfunction literal inside the loop body. It checks only instances where\nthe function literal is called in a defer or go statement that is the\nlast statement in the loop body, as otherwise we would need whole\nprogram analysis.\nFor example:\n\tfor i, v := range s {\n\t\tgo func() {\n\t\t\tprintln(i, v) // not what you might expect\n\t\t}()\n\t}\nSee: https://golang.org/doc/go_faq.html#closures_and_goroutines",
236                   "default": true
237                 },
238                 "lostcancel": {
239                   "type": "boolean",
240                   "description": "check cancel func returned by context.WithCancel is called\nThe cancellation function returned by context.WithCancel, WithTimeout,\nand WithDeadline must be called or the new context will remain live\nuntil its parent context is cancelled.\n(The background context is never cancelled.)",
241                   "default": true
242                 },
243                 "nilfunc": {
244                   "type": "boolean",
245                   "description": "check for useless comparisons between functions and nil\nA useless comparison is one like f == nil as opposed to f() == nil.",
246                   "default": true
247                 },
248                 "nilness": {
249                   "type": "boolean",
250                   "description": "check for redundant or impossible nil comparisons\nThe nilness checker inspects the control-flow graph of each function in\na package and reports nil pointer dereferences, degenerate nil\npointers, and panics with nil values. A degenerate comparison is of the form\nx==nil or x!=nil where x is statically known to be nil or non-nil. These are\noften a mistake, especially in control flow related to errors. Panics with nil\nvalues are checked because they are not detectable by\n\tif r := recover(); r != nil {\nThis check reports conditions such as:\n\tif f == nil { // impossible condition (f is a function)\n\t}\nand:\n\tp := &v\n\t...\n\tif p != nil { // tautological condition\n\t}\nand:\n\tif p == nil {\n\t\tprint(*p) // nil dereference\n\t}\nand:\n\tif p == nil {\n\t\tpanic(p)\n\t}\n**Disabled by default. Enable it by setting `\"analyses\": {\"nilness\": true}`.**"
251                 },
252                 "printf": {
253                   "type": "boolean",
254                   "description": "check consistency of Printf format strings and arguments\nThe check applies to known functions (for example, those in package fmt)\nas well as any detected wrappers of known functions.\nA function that wants to avail itself of printf checking but is not\nfound by this analyzer's heuristics (for example, due to use of\ndynamic calls) can insert a bogus call:\n\tif false {\n\t\t_ = fmt.Sprintf(format, args...) // enable printf checking\n\t}\nThe -funcs flag specifies a comma-separated list of names of additional\nknown formatting functions or methods. If the name contains a period,\nit must denote a specific function using one of the following forms:\n\tdir/pkg.Function\n\tdir/pkg.Type.Method\n\t(*dir/pkg.Type).Method\nOtherwise the name is interpreted as a case-insensitive unqualified\nidentifier such as \"errorf\". Either way, if a listed name ends in f, the\nfunction is assumed to be Printf-like, taking a format string before the\nargument list. Otherwise it is assumed to be Print-like, taking a list\nof arguments with no format string.",
255                   "default": true
256                 },
257                 "shadow": {
258                   "type": "boolean",
259                   "description": "check for possible unintended shadowing of variables\nThis analyzer check for shadowed variables.\nA shadowed variable is a variable declared in an inner scope\nwith the same name and type as a variable in an outer scope,\nand where the outer variable is mentioned after the inner one\nis declared.\n(This definition can be refined; the module generates too many\nfalse positives and is not yet enabled by default.)\nFor example:\n\tfunc BadRead(f *os.File, buf []byte) error {\n\t\tvar err error\n\t\tfor {\n\t\t\tn, err := f.Read(buf) // shadows the function variable 'err'\n\t\t\tif err != nil {\n\t\t\t\tbreak // causes return of wrong value\n\t\t\t}\n\t\t\tfoo(buf)\n\t\t}\n\t\treturn err\n\t}\n**Disabled by default. Enable it by setting `\"analyses\": {\"shadow\": true}`.**"
260                 },
261                 "shift": {
262                   "type": "boolean",
263                   "description": "check for shifts that equal or exceed the width of the integer",
264                   "default": true
265                 },
266                 "simplifycompositelit": {
267                   "type": "boolean",
268                   "description": "check for composite literal simplifications\nAn array, slice, or map composite literal of the form:\n\t[]T{T{}, T{}}\nwill be simplified to:\n\t[]T{{}, {}}\nThis is one of the simplifications that \"gofmt -s\" applies.",
269                   "default": true
270                 },
271                 "simplifyrange": {
272                   "type": "boolean",
273                   "description": "check for range statement simplifications\nA range of the form:\n\tfor x, _ = range v {...}\nwill be simplified to:\n\tfor x = range v {...}\nA range of the form:\n\tfor _ = range v {...}\nwill be simplified to:\n\tfor range v {...}\nThis is one of the simplifications that \"gofmt -s\" applies.",
274                   "default": true
275                 },
276                 "simplifyslice": {
277                   "type": "boolean",
278                   "description": "check for slice simplifications\nA slice expression of the form:\n\ts[a:len(s)]\nwill be simplified to:\n\ts[a:]\nThis is one of the simplifications that \"gofmt -s\" applies.",
279                   "default": true
280                 },
281                 "sortslice": {
282                   "type": "boolean",
283                   "description": "check the argument type of sort.Slice\nsort.Slice requires an argument of a slice type. Check that\nthe interface{} value passed to sort.Slice is actually a slice.",
284                   "default": true
285                 },
286                 "stdmethods": {
287                   "type": "boolean",
288                   "description": "check signature of methods of well-known interfaces\nSometimes a type may be intended to satisfy an interface but may fail to\ndo so because of a mistake in its method signature.\nFor example, the result of this WriteTo method should be (int64, error),\nnot error, to satisfy io.WriterTo:\n\ttype myWriterTo struct{...}\n        func (myWriterTo) WriteTo(w io.Writer) error { ... }\nThis check ensures that each method whose name matches one of several\nwell-known interface methods from the standard library has the correct\nsignature for that interface.\nChecked method names include:\n\tFormat GobEncode GobDecode MarshalJSON MarshalXML\n\tPeek ReadByte ReadFrom ReadRune Scan Seek\n\tUnmarshalJSON UnreadByte UnreadRune WriteByte\n\tWriteTo",
289                   "default": true
290                 },
291                 "stringintconv": {
292                   "type": "boolean",
293                   "description": "check for string(int) conversions\nThis checker flags conversions of the form string(x) where x is an integer\n(but not byte or rune) type. Such conversions are discouraged because they\nreturn the UTF-8 representation of the Unicode code point x, and not a decimal\nstring representation of x as one might expect. Furthermore, if x denotes an\ninvalid code point, the conversion cannot be statically rejected.\nFor conversions that intend on using the code point, consider replacing them\nwith string(rune(x)). Otherwise, strconv.Itoa and its equivalents return the\nstring representation of the value in the desired base.",
294                   "default": true
295                 },
296                 "structtag": {
297                   "type": "boolean",
298                   "description": "check that struct field tags conform to reflect.StructTag.Get\nAlso report certain struct tags (json, xml) used with unexported fields.",
299                   "default": true
300                 },
301                 "testinggoroutine": {
302                   "type": "boolean",
303                   "description": "report calls to (*testing.T).Fatal from goroutines started by a test.\nFunctions that abruptly terminate a test, such as the Fatal, Fatalf, FailNow, and\nSkip{,f,Now} methods of *testing.T, must be called from the test goroutine itself.\nThis checker detects calls to these functions that occur within a goroutine\nstarted by the test. For example:\nfunc TestFoo(t *testing.T) {\n    go func() {\n        t.Fatal(\"oops\") // error: (*T).Fatal called from non-test goroutine\n    }()\n}",
304                   "default": true
305                 },
306                 "tests": {
307                   "type": "boolean",
308                   "description": "check for common mistaken usages of tests and examples\nThe tests checker walks Test, Benchmark and Example functions checking\nmalformed names, wrong signatures and examples documenting non-existent\nidentifiers.\nPlease see the documentation for package testing in golang.org/pkg/testing\nfor the conventions that are enforced for Tests, Benchmarks, and Examples.",
309                   "default": true
310                 },
311                 "unmarshal": {
312                   "type": "boolean",
313                   "description": "report passing non-pointer or non-interface values to unmarshal\nThe unmarshal analysis reports calls to functions such as json.Unmarshal\nin which the argument type is not a pointer or an interface.",
314                   "default": true
315                 },
316                 "unreachable": {
317                   "type": "boolean",
318                   "description": "check for unreachable code\nThe unreachable analyzer finds statements that execution can never reach\nbecause they are preceded by an return statement, a call to panic, an\ninfinite loop, or similar constructs.",
319                   "default": true
320                 },
321                 "unsafeptr": {
322                   "type": "boolean",
323                   "description": "check for invalid conversions of uintptr to unsafe.Pointer\nThe unsafeptr analyzer reports likely incorrect uses of unsafe.Pointer\nto convert integers to pointers. A conversion from uintptr to\nunsafe.Pointer is invalid if it implies that there is a uintptr-typed\nword in memory that holds a pointer value, because that word will be\ninvisible to stack copying and to the garbage collector.",
324                   "default": true
325                 },
326                 "unusedparams": {
327                   "type": "boolean",
328                   "description": "check for unused parameters of functions\nThe unusedparams analyzer checks functions to see if there are\nany parameters that are not being used.\nTo reduce false positives it ignores:\n- methods\n- parameters that do not have a name or are underscored\n- functions in test files\n- functions with empty bodies or those with just a return stmt\n**Disabled by default. Enable it by setting `\"analyses\": {\"unusedparams\": true}`.**"
329                 },
330                 "unusedresult": {
331                   "type": "boolean",
332                   "description": "check for unused results of calls to some functions\nSome functions like fmt.Errorf return a result and have no side effects,\nso it is always a mistake to discard the result. This analyzer reports\ncalls to certain functions in which the result of the call is ignored.\nThe set of functions may be controlled using flags.",
333                   "default": true
334                 },
335                 "unusedwrite": {
336                   "type": "boolean",
337                   "description": "checks for unused writes\nThe analyzer reports instances of writes to struct fields and\narrays that are never read. Specifically, when a struct object\nor an array is copied, its elements are copied implicitly by\nthe compiler, and any element write to this copy does nothing\nwith the original object.\nFor example:\n\ttype T struct { x int }\n\tfunc f(input []T) {\n\t\tfor i, v := range input {  // v is a copy\n\t\t\tv.x = i  // unused write to field x\n\t\t}\n\t}\nAnother example is about non-pointer receiver:\n\ttype T struct { x int }\n\tfunc (t T) f() {  // t is a copy\n\t\tt.x = i  // unused write to field x\n\t}\n**Disabled by default. Enable it by setting `\"analyses\": {\"unusedwrite\": true}`.**"
338                 },
339                 "useany": {
340                   "type": "boolean",
341                   "description": "check for constraints that could be simplified to \"any\"",
342                   "default": true
343                 },
344                 "fillreturns": {
345                   "type": "boolean",
346                   "description": "suggested fixes for \"wrong number of return values (want %d, got %d)\"\nThis checker provides suggested fixes for type errors of the\ntype \"wrong number of return values (want %d, got %d)\". For example:\n\tfunc m() (int, string, *bool, error) {\n\t\treturn\n\t}\nwill turn into\n\tfunc m() (int, string, *bool, error) {\n\t\treturn 0, \"\", nil, nil\n\t}\nThis functionality is similar to https://github.com/sqs/goreturns.",
347                   "default": true
348                 },
349                 "nonewvars": {
350                   "type": "boolean",
351                   "description": "suggested fixes for \"no new vars on left side of :=\"\nThis checker provides suggested fixes for type errors of the\ntype \"no new vars on left side of :=\". For example:\n\tz := 1\n\tz := 2\nwill turn into\n\tz := 1\n\tz = 2",
352                   "default": true
353                 },
354                 "noresultvalues": {
355                   "type": "boolean",
356                   "description": "suggested fixes for \"no result values expected\"\nThis checker provides suggested fixes for type errors of the\ntype \"no result values expected\". For example:\n\tfunc z() { return nil }\nwill turn into\n\tfunc z() { return }",
357                   "default": true
358                 },
359                 "undeclaredname": {
360                   "type": "boolean",
361                   "description": "suggested fixes for \"undeclared name: <>\"\nThis checker provides suggested fixes for type errors of the\ntype \"undeclared name: <>\". It will either insert a new statement,\nsuch as:\n\"<> := \"\nor a new function declaration, such as:\nfunc <>(inferred parameters) {\n\tpanic(\"implement me!\")\n}",
362                   "default": true
363                 },
364                 "fillstruct": {
365                   "type": "boolean",
366                   "description": "note incomplete struct initializations\nThis analyzer provides diagnostics for any struct literals that do not have\nany fields initialized. Because the suggested fix for this analysis is\nexpensive to compute, callers should compute it separately, using the\nSuggestedFix function below.",
367                   "default": true
368                 }
369               }
370             },
371             "annotations": {
372               "type": "object",
373               "patternProperties": {
374                 ".+": {
375                   "type": "boolean"
376                 }
377               },
378               "description": "**This setting is experimental and may be deleted.**\n\nannotations specifies the various kinds of optimization diagnostics\nthat should be reported by the gc_details command.\n\nCan contain any of:\n\n* `\"bounds\"` controls bounds checking diagnostics.\n\n* `\"escape\"` controls diagnostics about escape choices.\n\n* `\"inline\"` controls diagnostics about inlining choices.\n\n* `\"nil\"` controls nil checks.\n"
379             },
380             "buildFlags": {
381               "type": "array",
382               "items": {
383                 "type": "string"
384               },
385               "description": "buildFlags is the set of flags passed on to the build system when invoked.\nIt is applied to queries like `go list`, which is used when discovering files.\nThe most common use is to set `-tags`.\n"
386             },
387             "codelenses": {
388               "type": "object",
389               "description": "codelenses overrides the enabled/disabled state of code lenses. See the\n\"Code Lenses\" section of the\n[Settings page](https://github.com/golang/tools/blob/master/gopls/doc/settings.md)\nfor the list of supported lenses.\n\nExample Usage:\n\n```json5\n\"gopls\": {\n...\n  \"codelenses\": {\n    \"generate\": false,  // Don't show the `go generate` lens.\n    \"gc_details\": true  // Show a code lens toggling the display of gc's choices.\n  }\n...\n}\n```\n",
390               "additionalProperties": false,
391               "properties": {
392                 "gc_details": {
393                   "type": "boolean",
394                   "default": false
395                 },
396                 "generate": {
397                   "type": "boolean",
398                   "default": true
399                 },
400                 "regenerate_cgo": {
401                   "type": "boolean",
402                   "default": true
403                 },
404                 "tidy": {
405                   "type": "boolean",
406                   "default": true
407                 },
408                 "upgrade_dependency": {
409                   "type": "boolean",
410                   "default": true
411                 },
412                 "vendor": {
413                   "type": "boolean",
414                   "default": true
415                 }
416               }
417             },
418             "completionBudget": {
419               "type": "string",
420               "default": "100ms",
421               "description": "**This setting is for debugging purposes only.**\n\ncompletionBudget is the soft latency goal for completion requests. Most\nrequests finish in a couple milliseconds, but in some cases deep\ncompletions can take much longer. As we use up our budget we\ndynamically reduce the search scope to ensure we return timely\nresults. Zero means unlimited.\n"
422             },
423             "diagnosticsDelay": {
424               "type": "string",
425               "default": "250ms",
426               "description": "**This is an advanced setting and should not be configured by most `gopls` users.**\n\ndiagnosticsDelay 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"
427             },
428             "directoryFilters": {
429               "type": "array",
430               "items": {
431                 "type": "string"
432               },
433               "description": "directoryFilters can be used to exclude unwanted directories from the\nworkspace. By default, all directories are included. Filters are an\noperator, `+` to include and `-` to exclude, followed by a path prefix\nrelative to the workspace folder. They are evaluated in order, and\nthe last filter that applies to a path controls whether it is included.\nThe path prefix can be empty, so an initial `-` excludes everything.\n\nExamples:\n\nExclude node_modules: `-node_modules`\n\nInclude only project_a: `-` (exclude everything), `+project_a`\n\nInclude only project_a, but not node_modules inside it: `-`, `+project_a`, `-project_a/node_modules`\n"
434             },
435             "env": {
436               "type": "object",
437               "patternProperties": {
438                 ".+": {
439                   "type": "string"
440                 }
441               },
442               "description": "env adds environment variables to external commands run by `gopls`, most notably `go list`.\n"
443             },
444             "expandWorkspaceToModule": {
445               "type": "boolean",
446               "default": true,
447               "description": "**This setting is experimental and may be deleted.**\n\nexpandWorkspaceToModule instructs `gopls` to adjust the scope of the\nworkspace to find the best available module root. `gopls` first looks for\na go.mod file in any parent directory of the workspace folder, expanding\nthe scope to that directory if it exists. If no viable parent directory is\nfound, gopls will check if there is exactly one child directory containing\na go.mod file, narrowing the scope to that directory if it exists.\n"
448             },
449             "experimentalPackageCacheKey": {
450               "type": "boolean",
451               "default": true,
452               "description": "**This setting is experimental and may be deleted.**\n\nexperimentalPackageCacheKey controls whether to use a coarser cache key\nfor package type information to increase cache hits. This setting removes\nthe user's environment, build flags, and working directory from the cache\nkey, which should be a safe change as all relevant inputs into the type\nchecking pass are already hashed into the key. This is temporarily guarded\nby an experiment because caching behavior is subtle and difficult to\ncomprehensively test.\n"
453             },
454             "experimentalPostfixCompletions": {
455               "type": "boolean",
456               "default": true,
457               "description": "**This setting is experimental and may be deleted.**\n\nexperimentalPostfixCompletions enables artifical method snippets\nsuch as \"someSlice.sort!\".\n"
458             },
459             "experimentalTemplateSupport": {
460               "type": "boolean",
461               "default": false,
462               "description": "**This setting is experimental and may be deleted.**\n\nexperimentalTemplateSupport opts into the experimental support\nfor template files.\n"
463             },
464             "experimentalUseInvalidMetadata": {
465               "type": "boolean",
466               "default": false,
467               "description": "**This setting is experimental and may be deleted.**\n\nexperimentalUseInvalidMetadata 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"
468             },
469             "experimentalWatchedFileDelay": {
470               "type": "string",
471               "default": "0s",
472               "description": "**This setting is experimental and may be deleted.**\n\nexperimentalWatchedFileDelay 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"
473             },
474             "experimentalWorkspaceModule": {
475               "type": "boolean",
476               "default": false,
477               "description": "**This setting is experimental and may be deleted.**\n\nexperimentalWorkspaceModule opts a user into the experimental support\nfor multi-module workspaces.\n"
478             },
479             "gofumpt": {
480               "type": "boolean",
481               "default": false,
482               "description": "gofumpt indicates if we should run gofumpt formatting.\n"
483             },
484             "hoverKind": {
485               "type": "string",
486               "enum": [
487                 "FullDocumentation",
488                 "NoDocumentation",
489                 "SingleLine",
490                 "Structured",
491                 "SynopsisDocumentation"
492               ],
493               "default": "FullDocumentation",
494               "description": "hoverKind controls the information that appears in the hover text.\nSingleLine and Structured are intended for use only by authors of editor plugins.\n\nMust be one of:\n\n* `\"FullDocumentation\"`\n* `\"NoDocumentation\"`\n* `\"SingleLine\"`\n* `\"Structured\"` is an experimental setting that returns a structured hover format.\nThis format separates the signature from the documentation, so that the client\ncan do more manipulation of these fields.\\\nThis should only be used by clients that support this behavior.\n\n* `\"SynopsisDocumentation\"`\n"
495             },
496             "importShortcut": {
497               "type": "string",
498               "enum": [
499                 "Both",
500                 "Definition",
501                 "Link"
502               ],
503               "default": "Both",
504               "description": "importShortcut specifies whether import statements should link to\ndocumentation or go to definitions.\n\nMust be one of:\n\n* `\"Both\"`\n* `\"Definition\"`\n* `\"Link\"`\n"
505             },
506             "linksInHover": {
507               "type": "boolean",
508               "default": true,
509               "description": "linksInHover toggles the presence of links to documentation in hover.\n"
510             },
511             "linkTarget": {
512               "type": "string",
513               "default": "pkg.go.dev",
514               "description": "linkTarget controls where documentation links go.\nIt might be one of:\n\n* `\"godoc.org\"`\n* `\"pkg.go.dev\"`\n\nIf company chooses to use its own `godoc.org`, its address can be used as well.\n"
515             },
516             "local": {
517               "type": "string",
518               "default": "",
519               "description": "local is the equivalent of the `goimports -local` flag, which puts\nimports beginning with this string after third-party packages. It should\nbe the prefix of the import path whose imports should be grouped\nseparately.\n"
520             },
521             "matcher": {
522               "type": "string",
523               "enum": [
524                 "CaseInsensitive",
525                 "CaseSensitive",
526                 "Fuzzy"
527               ],
528               "default": "Fuzzy",
529               "description": "**This is an advanced setting and should not be configured by most `gopls` users.**\n\nmatcher sets the algorithm that is used when calculating completion\ncandidates.\n\nMust be one of:\n\n* `\"CaseInsensitive\"`\n* `\"CaseSensitive\"`\n* `\"Fuzzy\"`\n"
530             },
531             "memoryMode": {
532               "type": "string",
533               "enum": [
534                 "DegradeClosed",
535                 "Normal"
536               ],
537               "default": "Normal",
538               "description": "**This setting is experimental and may be deleted.**\n\nmemoryMode controls the tradeoff `gopls` makes between memory usage and\ncorrectness.\n\nValues other than `Normal` are untested and may break in surprising ways.\n\nMust be one of:\n\n* `\"DegradeClosed\"`: In DegradeClosed mode, `gopls` will collect less information about\npackages without open files. As a result, features like Find\nReferences and Rename will miss results in such packages.\n\n* `\"Normal\"`\n"
539             },
540             "semanticTokens": {
541               "type": "boolean",
542               "default": false,
543               "description": "**This setting is experimental and may be deleted.**\n\nsemanticTokens controls whether the LSP server will send\nsemantic tokens to the client.\n"
544             },
545             "staticcheck": {
546               "type": "boolean",
547               "default": false,
548               "description": "**This setting is experimental and may be deleted.**\n\nstaticcheck enables additional analyses from staticcheck.io.\n"
549             },
550             "symbolMatcher": {
551               "type": "string",
552               "enum": [
553                 "CaseInsensitive",
554                 "CaseSensitive",
555                 "FastFuzzy",
556                 "Fuzzy"
557               ],
558               "default": "Fuzzy",
559               "description": "**This is an advanced setting and should not be configured by most `gopls` users.**\n\nsymbolMatcher sets the algorithm that is used when finding workspace symbols.\n\nMust be one of:\n\n* `\"CaseInsensitive\"`\n* `\"CaseSensitive\"`\n* `\"FastFuzzy\"`\n* `\"Fuzzy\"`\n"
560             },
561             "symbolStyle": {
562               "type": "string",
563               "enum": [
564                 "Dynamic",
565                 "Full",
566                 "Package"
567               ],
568               "default": "Dynamic",
569               "description": "**This is an advanced setting and should not be configured by most `gopls` users.**\n\nsymbolStyle controls how symbols are qualified in symbol responses.\n\nExample Usage:\n\n```json5\n\"gopls\": {\n...\n  \"symbolStyle\": \"Dynamic\",\n...\n}\n```\n\nMust be one of:\n\n* `\"Dynamic\"` uses whichever qualifier results in the highest scoring\nmatch for the given symbol query. Here a \"qualifier\" is any \"/\" or \".\"\ndelimited suffix of the fully qualified symbol. i.e. \"to/pkg.Foo.Field\" or\njust \"Foo.Field\".\n\n* `\"Full\"` is fully qualified symbols, i.e.\n\"path/to/pkg.Foo.Field\".\n\n* `\"Package\"` is package qualified symbols i.e.\n\"pkg.Foo.Field\".\n"
570             },
571             "usePlaceholders": {
572               "type": "boolean",
573               "default": false,
574               "description": "placeholders enables placeholders for function parameters or struct\nfields in completion responses.\n"
575             },
576             "verboseOutput": {
577               "type": "boolean",
578               "default": false,
579               "description": "**This setting is for debugging purposes only.**\n\nverboseOutput enables additional debug logging.\n"
580             }
581           }
582         },
583         "go.tags": {
584           "type": "object",
585           "properties": {
586             "tags": {
587               "type": "string",
588               "default": "json",
589               "description": "Comma separated tags to be used by `go.tags.add` command"
590             },
591             "options": {
592               "type": "string",
593               "default": "json=omitempty",
594               "description": "Comma separated tag=options pairs to be used by `go.tags.add` command"
595             },
596             "transform": {
597               "type": "string",
598               "enum": [
599                 "snakecase",
600                 "camelcase"
601               ],
602               "default": "snakecase",
603               "description": "Transformation rule used by `go.tags.add` command to add tags"
604             },
605             "skipUnexported": {
606               "type": "boolean",
607               "default": false,
608               "description": "If true, skip unexported fields"
609             }
610           }
611         },
612         "go.tests": {
613           "type": "object",
614           "properties": {
615             "generateFlags": {
616               "type": "array",
617               "items": {
618                 "type": "string"
619               },
620               "default": [],
621               "description": "Additional command line flags to pass to `gotests` for generating tests."
622             }
623           }
624         },
625         "go.checkForUpdates": {
626           "description": "[EXPERIMENTAL] Check for gopls updates on start.",
627           "type": "string",
628           "default": "disabled",
629           "enum": [
630             "disabled",
631             "inform",
632             "ask",
633             "install"
634           ]
635         }
636       }
637     },
638     "commands": [
639       {
640         "title": "Generate interface stubs",
641         "category": "Go",
642         "command": "go.impl.cursor"
643       },
644       {
645         "title": "Install / update gomodifytags",
646         "category": "Go",
647         "command": "go.install.gomodifytags"
648       },
649       {
650         "title": "Install / update goplay",
651         "category": "Go",
652         "command": "go.install.goplay"
653       },
654       {
655         "title": "Install / update gopls",
656         "category": "Go",
657         "command": "go.install.gopls"
658       },
659       {
660         "title": "Install / update gotests",
661         "category": "Go",
662         "command": "go.install.gotests"
663       },
664       {
665         "title": "Install / update impl",
666         "category": "Go",
667         "command": "go.install.impl"
668       },
669       {
670         "title": "Install / update all tools",
671         "category": "Go",
672         "command": "go.install.tools"
673       },
674       {
675         "title": "Run on go playground",
676         "category": "Go",
677         "command": "go.playground"
678       },
679       {
680         "title": "Add tags to struct fields",
681         "category": "Go",
682         "command": "go.tags.add"
683       },
684       {
685         "title": "Add tags to struct field in current line",
686         "category": "Go",
687         "command": "go.tags.add.line"
688       },
689       {
690         "title": "Add tags to struct fields (prompt)",
691         "category": "Go",
692         "command": "go.tags.add.prompt"
693       },
694       {
695         "title": "Remove all tags from struct fields",
696         "category": "Go",
697         "command": "go.tags.clear"
698       },
699       {
700         "title": "Remove all tags from struct fields in current line",
701         "category": "Go",
702         "command": "go.tags.clear.line"
703       },
704       {
705         "title": "Remove tags from struct fields",
706         "category": "Go",
707         "command": "go.tags.remove"
708       },
709       {
710         "title": "Remove tags from struct field in current line",
711         "category": "Go",
712         "command": "go.tags.remove.line"
713       },
714       {
715         "title": "Remove tags from struct fields (prompt)",
716         "category": "Go",
717         "command": "go.tags.remove.prompt"
718       },
719       {
720         "title": "Generate unit tests for exported functions in file",
721         "category": "Go",
722         "command": "go.test.generate.exported"
723       },
724       {
725         "title": "Generate unit tests for file",
726         "category": "Go",
727         "command": "go.test.generate.file"
728       },
729       {
730         "title": "Generate unit tests for current function",
731         "category": "Go",
732         "command": "go.test.generate.function"
733       },
734       {
735         "title": "Toggle test file",
736         "category": "Go",
737         "command": "go.test.toggle"
738       },
739       {
740         "title": "Print extension version",
741         "category": "Go",
742         "command": "go.version"
743       }
744     ],
745     "snippets": [
746       {
747         "language": "go",
748         "path": "./snippets/go.json"
749       },
750       {
751         "language": "gomod",
752         "path": "./snippets/gomod.json"
753       }
754     ]
755   },
756   "devDependencies": {
757     "@types/mocha": "^9.0.0",
758     "@types/node": "^16.11.6",
759     "@types/node-fetch": "^2.5.12",
760     "@types/tmp": "^0.2.2",
761     "@types/which": "^2.0.1",
762     "@typescript-eslint/eslint-plugin": "^5.3.0",
763     "@typescript-eslint/parser": "^5.3.0",
764     "coc-dev-tools": "^0.1.0",
765     "coc.nvim": "0.0.80",
766     "eslint": "^8.1.0",
767     "eslint-config-josa-typescript": "^0.1.2",
768     "mocha": "^9.1.3",
769     "rimraf": "^3.0.2",
770     "tmp": "^0.2.1",
771     "ts-node": "^10.4.0",
772     "typescript": "~4.4.4"
773   },
774   "dependencies": {
775     "node-fetch": "^2.6.6",
776     "tslib": "^2.3.1",
777     "vscode-languageserver-textdocument": "^1.0.2",
778     "vscode-uri": "^3.0.2",
779     "which": "^2.0.2"
780   }
781 }