дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 10:07:11 +02:00
Pins the go.mod serving contract: opening go.mod through LspManager with the bundled registry sends didOpen to gopls with languageId go.mod, scoped to the module root, and gopls's pushed diagnostics reach Problems. The gomod/gowork gopls entries now use the same initialization options as the go entry, so startup options no longer depend on which file launches the server first. Refs #2248 Co-authored-by: a-rookie-of-C-language <[email protected]>
14 рядки
346 B
TOML
14 рядки
346 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 }
|
|
root-markers = ["go.work", "go.mod"]
|
|
install-hint = "go install golang.org/x/tools/gopls@latest"
|