<div dir="auto">SG if you also considered the style block. I suppose the risks of having this in a feature-specific block is much lower.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 7, 2021, 20:14 Sam McCall via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">sammccall added inline comments.<br>
<br>
<br>
================<br>
Comment at: clang-tools-extra/clangd/ConfigFragment.h:271<br>
+  /// Describes hover preferences.<br>
+  struct HoverBlock {<br>
+    /// Whether hover show a.k.a type.<br>
----------------<br>
kadircet wrote:<br>
> lh123 wrote:<br>
> > sammccall wrote:<br>
> > > One question is whether the setting should control hover specifically, or whether it covers "in places we print types" more generally. But it doesn't seem likely we'll make this configurable for diagnostics, and I don't have other examples. Most of our settings are per-feature. So I think this is right as it is.<br>
> > In the future, the AKA type can also be displayed in the signature help, but I don't know the best place for this option.(for now, it should be fine to put this setting in hover)<br>
> we've got a `Style` section actually, which might be more suitable for extensibility but I am also afraid of pushing ourselves into a corner by putting too much meaning into a boolean flag.<br>
> <br>
> maybe we should just go with a command line flag until we figure out what to do here (as it's less invasive)?<br>
I thought about style but the idea is that reflects coding style of the project, where this is really more of a user preference.<br>
<br>
I'm a little skeptical whether we'll want this in sig help/completion (vs just being smarter about whether to desugar)<br>
<br>
Command line flag is tempting but annoying to wire up. My favorite is probably what we have here<br>
<br>
<br>
Repository:<br>
  rG LLVM Github Monorepo<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D114665/new/" rel="noreferrer noreferrer" target="_blank">https://reviews.llvm.org/D114665/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D114665" rel="noreferrer noreferrer" target="_blank">https://reviews.llvm.org/D114665</a><br>
<br>
</blockquote></div>