From f0fd937d5ceaed224570899391499708c4a2f3c8 Mon Sep 17 00:00:00 2001 From: TerminalFi Date: Sun, 6 Aug 2023 23:46:24 +0000 Subject: [PATCH] update to latest gopls version 0.13.1 --- LSP-gopls.sublime-settings | 12 ++++++++++++ plugin/version.py | 2 +- sublime-package.json | 12 +++++++++++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/LSP-gopls.sublime-settings b/LSP-gopls.sublime-settings index 9de43db..e5122c0 100644 --- a/LSP-gopls.sublime-settings +++ b/LSP-gopls.sublime-settings @@ -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). diff --git a/plugin/version.py b/plugin/version.py index db75da6..845b573 100644 --- a/plugin/version.py +++ b/plugin/version.py @@ -1 +1 @@ -VERSION = '0.12.4' +VERSION = '0.13.1' diff --git a/sublime-package.json b/sublime-package.json index 7d37f07..ae2126c 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -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 }, @@ -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": {},