Closed esoterix closed 11 months ago
Esotk fix cheat pls
Wouldn't it work to just quote the value: "clangd.all-scopes-completion": "false"
? I suppose the LSP-json will complain until schema is updated but that won't stop it from working.
I am looking into this next weekend.
Should be fixed in #19
clangd defines some command line options with type
llvm::opt<bool>
. The default value can be either true or false. To specify that such an option should be set to false, you would pass--option-name=false
on the command line [1].The relevant code for this issue is in plugin.py
on_pre_start
:Any LSP-clangd option that is set to false or zero is skipped. In clangd,
--all-scopes-completion
defaults totrue
[2]. I would expect that configuring the LSP-clangd option using"clangd.all-scopes-completion": false
would set the option to false, but since the option is skipped, clangd ends up using the default value of true.This also applies to other options such as
malloc-trim
,background-index
,enable-config
, andfunction-arg-placeholders
.[1] https://llvm.org/docs/CommandLine.html#boolean-arguments [2] https://github.com/llvm/llvm-project/blob/042dd99484d6f393cc8a365def250e9d74c24d37/clang-tools-extra/clangd/tool/ClangdMain.cpp#L146