Skip to content

Commit

Permalink
Merge pull request #65 from sublimelsp/update/gopls_v0_13_1
Browse files Browse the repository at this point in the history
Update VERSION to Gopls v0.13.1
  • Loading branch information
TerminalFi committed Aug 6, 2023
2 parents 087b6d0 + f0fd937 commit 14ac8c3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
12 changes: 12 additions & 0 deletions LSP-gopls.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,18 @@
//
"gopls.diagnosticsDelay": "1s",

// analysisProgressReporting controls whether gopls sends progress
// notifications when construction of its index of analysis facts is taking a
// long time. Cancelling these notifications will cancel the indexing task,
// though it will restart after the next change in the workspace.
//
// When a package is opened for the first time and heavyweight analyses such as
// staticcheck are enabled, it can take a while to construct the index of
// analysis facts for all its dependencies. The index is cached in the
// filesystem, so subsequent analysis should be faster.
//
"gopls.analysisProgressReporting": true,

// (experimental) hints specify inlay hints that users want to see. A full list of hints
// that gopls uses can be found in
// [inlayHints.md](https://github.com/golang/tools/blob/master/gopls/doc/inlayHints.md).
Expand Down
2 changes: 1 addition & 1 deletion plugin/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.12.4'
VERSION = '0.13.1'
12 changes: 11 additions & 1 deletion sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,18 @@
"type": "boolean",
"default": true
},
"deprecated": {
"markdownDescription": "check for use of deprecated identifiers\n\nThe deprecated analyzer looks for deprecated symbols and package imports.\n\nSee https://go.dev/wiki/Deprecated to learn about Go's convention\nfor documenting and signaling deprecated identifiers.",
"type": "boolean",
"default": true
},
"directive": {
"markdownDescription": "check Go toolchain directives such as //go:debug\n\nThis analyzer checks for problems with known Go toolchain directives\nin all Go source files in a package directory, even those excluded by\n//go:build constraints, and all non-Go source files too.\n\nFor //go:debug (see https://go.dev/doc/godebug), the analyzer checks\nthat the directives are placed only in Go source files, only above the\npackage comment, and only in package main or *_test.go files.\n\nSupport for other known directives may be added in the future.\n\nThis analyzer does not check //go:build, which is handled by the\nbuildtag analyzer.\n",
"type": "boolean",
"default": true
},
"embed": {
"markdownDescription": "check for //go:embed directive import\n\nThis analyzer checks that the embed package is imported when source code contains //go:embed comment directives.\nThe embed package must be imported for //go:embed directives to function.import _ \"embed\".",
"markdownDescription": "check //go:embed directive usage\n\nThis analyzer checks that the embed package is imported if //go:embed\ndirectives are present, providing a suggested fix to add the import if\nit is missing.\n\nThis analyzer also checks that //go:embed directives precede the\ndeclaration of a single variable.",
"type": "boolean",
"default": true
},
Expand Down Expand Up @@ -513,6 +518,11 @@
"default": "1s",
"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"
},
"gopls.analysisProgressReporting": {
"type": "boolean",
"default": true,
"markdownDescription": "analysisProgressReporting controls whether gopls sends progress\nnotifications when construction of its index of analysis facts is taking a\nlong time. Cancelling these notifications will cancel the indexing task,\nthough it will restart after the next change in the workspace.\n\nWhen a package is opened for the first time and heavyweight analyses such as\nstaticcheck are enabled, it can take a while to construct the index of\nanalysis facts for all its dependencies. The index is cached in the\nfilesystem, so subsequent analysis should be faster.\n"
},
"gopls.hints": {
"type": "object",
"default": {},
Expand Down

0 comments on commit 14ac8c3

Please sign in to comment.