fix(lsp): supports_method for checking inlay hint support (#1195)
This commit is contained in:

committed by
GitHub

parent
f6d646a325
commit
9a0543531d
@ -123,7 +123,7 @@ return {
|
||||
|
||||
if opts.inlay_hints.enabled and inlay_hint then
|
||||
Util.on_attach(function(client, buffer)
|
||||
if client.server_capabilities.inlayHintProvider then
|
||||
if client.supports_method('textDocument/inlayHint') then
|
||||
inlay_hint(buffer, true)
|
||||
end
|
||||
end)
|
||||
|
Reference in New Issue
Block a user