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
I tried implementing this myself but had no luck adding this to the lsp-mode code base but from what I can see from lsp-go.el it's simply adding a ("gopls.hints" lsp-go-hints) to lsp-register-custom-settings and a definition similar to:
(defcustom lsp-go-hints `(assignVariableTypes t
compositeLiteralFields t
compositeLiteralTypes t
constantValues t
functionTypeParameters t
parameterNames t
rangeVariableTypes t)
"":type'(alist :key-type (symbol:tag"hint type") :value-type (boolean:tag"value"))
:group'lsp-go
:riskyt:package-version'(lsp-mode "6.2"))
Describes the functionality however no matter what I have tried I still get this error after enabling lsp-inlay-hints-mode
Error running timer ‘lsp--on-idle’: (error "The connected server(s) does not support method textDocument/inlayHint.
To find out what capabilities support your server use ‘M-x lsp-describe-session’
and expand the capabilities section")
The text was updated successfully, but these errors were encountered:
then despite registering the settings with lsp-register-custom-settings you will still get the error message that inlay hints are not supported by the connected server (See #4325). So that also might possibly be the cause of the error
I tried implementing this myself but had no luck adding this to the lsp-mode code base but from what I can see from lsp-go.el it's simply adding a
("gopls.hints" lsp-go-hints)
tolsp-register-custom-settings
and a definition similar to:https://github.com/golang/tools/blob/master/gopls/doc/settings.md#inlayhint
Describes the functionality however no matter what I have tried I still get this error after enabling
lsp-inlay-hints-mode
The text was updated successfully, but these errors were encountered: