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
range and command.title are rendered even if the server does not know the actual command. In this particular case, "title": "0 ref" means the declaration has 0 references. The title is more important than whether the command is rendered as a clickable button.
User clicks the 0 refs button (code lens). As there is no extension to handle the command ccls.xref, coc.nvim can bail out and print an error message in this step, instead of sending
Here is how CodeLens is rendered in vscode-ccls. These "* refs" are clickable buttons, but whether they are clickable does not matter too much. coc.nvim can print an error message as the command is not supported by an extension.
I feel it is distracting as it takes too much vertical space. emacs-ccls puts all lenses at the line end by default.
Describe the bug
:call CocAction('codeLens')
displays an error message[coc.nvim] Source id of codelens not found"
To Reproduce
~/.config/nvim/coc-settings.json
:cd /tmp/d; git init
echo 'int a;' > a.cc
nvim a.cc
:call CocAction('codeLens')
Expected behavior
textDocument/codeLen
result is rendered somewhereAdditional context
sysdig -As9999 --unbuffered -p '%evt.buffer' "proc.exe contains ccls and fd.type=unix"
:Note it encodes a JSON string as the only element of
"arguments"
(to make VSCode happy):/tmp/coc-nvim.log
log entry:The text was updated successfully, but these errors were encountered: