[PATCH] D74555: [clangd] Add a flag for setting isIncomplete flag true in all responses

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 13 09:01:26 PST 2020


kadircet added a comment.

some drive-by comments:

if this is a client-specific option, wouldn't it be equally hard for client to just set this in the LSP layer, instead of telling clangd to do that?

by looking at the current patch, it rather seems like a user-specific option, which will help users who want to prevent their editors from re-ranking results.



================
Comment at: clang-tools-extra/clangd/ClangdLSPServer.cpp:983
+                         LSPList.isIncomplete =
+                             ClangdServerOpts.AlwaysIncomplete ? true
+                                                               : List->HasMore;
----------------
nit: `ClangdServerOpts.AlwaysIncomplete || List->HasMore`


================
Comment at: clang-tools-extra/clangd/tool/ClangdMain.cpp:405
 
+opt<bool> AlwaysIncomplete{
+    "always-incomplete",
----------------
if we want clients to set it wouldn't it be better to make it an `initialization` option instead?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74555/new/

https://reviews.llvm.org/D74555





More information about the cfe-commits mailing list