We currently return an error, this causes coc.nvim and VSCode to
show an error message in the logs.
Returning empty list of completions allows to avod the error message
without altering other user-visible behavior.
Paths
| Differential D62999
[clangd] Return empty results on spurious completion triggers ClosedPublic Authored by ilya-biryukov on Jun 7 2019, 1:46 AM.
Details Summary We currently return an error, this causes coc.nvim and VSCode to Returning empty list of completions allows to avod the error message
Diff Detail
Event Timelinesammccall added inline comments.
This revision is now accepted and ready to land.Jun 7 2019, 2:13 AM ilya-biryukov retitled this revision from [clangd] Return 'RequestCancelled' on spurious completion triggers to [clangd] Return empty results on spurious completion triggers.Jun 7 2019, 9:06 AM ilya-biryukov added inline comments.
Closed by commit rL362811: [clangd] Return empty results on spurious completion triggers (authored by ibiryukov). · Explain WhyJun 7 2019, 9:21 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 203567 clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/test/completion-auto-trigger.test
|
this error code seems bogus, we should have a comment explaining that returning and empty list breaks vscode and any other error code breaks coc.nvim.
(Might want to file a vscode or LSP bug - trigger char is a heuristic, if [] isn't the preferred way for a server to say "no" then we should spell it out, if it is then vscode is wrong)