mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-14 16:07:52 +00:00
gopls reports available upgrades only after its "Check for upgrades" code lens runs, never reports deprecated modules, and checks vulnerabilities only on demand. Opening a go.mod now runs the upgrade check once per file and session, gopls' vulncheck setting is on for imports (Go, go.mod, go.work), and `go list -m -u` marks deprecated requirements on open and save. go.mod highlighting also covers godebug, tool and ignore.
14 lines
369 B
TOML
14 lines
369 B
TOML
id = "go.mod"
|
|
name = "Go Module"
|
|
filenames = ["go.mod"]
|
|
line-comment = "//"
|
|
indent = { tab-size = 4, insert-spaces = false }
|
|
ui-mode = "GoMod"
|
|
|
|
[[language-servers]]
|
|
name = "gopls"
|
|
command = "gopls"
|
|
initialization-options = { semanticTokens = true, vulncheck = "Imports" }
|
|
root-markers = ["go.work", "go.mod"]
|
|
install-hint = "go install golang.org/x/tools/gopls@latest"
|