You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because it is overwritten by the flag's default value. The following patch fixes it
diff --git a/internal/lsp/acmelsp/config/config.go b/internal/lsp/acmelsp/config/config.go
index bbdb63f..f1033fd 100644
--- a/internal/lsp/acmelsp/config/config.go
+++ b/internal/lsp/acmelsp/config/config.go
@@ -257,7 +257,7 @@ func (cfg *Config) ParseFlags(flags Flags, f *flag.FlagSet, arguments []string)
if flags&LangServerFlags != 0 {
f.BoolVar(&cfg.Verbose, "debug", cfg.Verbose, "turn on debugging prints (deprecated: use -v)")
f.StringVar(&cfg.RootDirectory, "rootdir", cfg.RootDirectory, "root directory used for LSP initialization")
- f.BoolVar(&cfg.HideDiagnostics, "hidediag", false, "hide diagnostics sent by LSP server")
+ f.BoolVar(&cfg.HideDiagnostics, "hidediag", cfg.HideDiagnostics, "hide diagnostics sent by LSP server")
f.BoolVar(&cfg.RPCTrace, "rpc.trace", false, "print the full rpc trace in lsp inspector format")
f.StringVar(&workspaces, "workspaces", "", "colon-separated list of initial workspace directories")
f.Var(&userServers, "server", `map filename to language server command. The format is
Thanks.
The text was updated successfully, but these errors were encountered:
If the
-hidediag
flag is not specified on the command line, it should honer the HideDiagnostics setting in the config file. Currently it is not:This is because it is overwritten by the flag's default value. The following patch fixes it
Thanks.
The text was updated successfully, but these errors were encountered: