This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Hide inlay hints capability behind a command-line flag
ClosedPublic

Authored by nridge on Apr 25 2021, 8:47 PM.

Diff Detail

Event Timeline

nridge created this revision.Apr 25 2021, 8:47 PM
nridge requested review of this revision.Apr 25 2021, 8:47 PM
sammccall accepted this revision.Apr 26 2021, 1:32 AM
sammccall added inline comments.
clang-tools-extra/clangd/ClangdLSPServer.cpp
1482

I think we only need to suppress the capability, not the method itself, right?

(This is what we usually do, folding-ranges is different... it's seriously crashy and even then probably should bind regardless)

clang-tools-extra/clangd/ClangdServer.h
167 ↗(On Diff #340424)

I think this should go in ClangdLSPServer::Options, again i'm not sure why FoldingRanges does what it does.

This revision is now accepted and ready to land.Apr 26 2021, 1:32 AM
njames93 added inline comments.
clang-tools-extra/clangd/tool/ClangdMain.cpp
313

Does it make sense to hide this flag? This is a feature that's basically in a shippable state disregarding any LSP standardization.

sammccall added inline comments.Apr 28 2021, 1:21 AM
clang-tools-extra/clangd/tool/ClangdMain.cpp
313

We may or may not *want* to ship it without further standardization, it can make maintenance more complicated.

But I agree if it's behind a flag it doesn't necessarily need to be hidden, esp if we plan to make a call closer to the release cut.

nridge updated this revision to Diff 342310.May 2 2021, 10:01 PM
nridge marked 4 inline comments as done.

Address review comments, including making the flag not hidden

This revision was landed with ongoing or failed builds.May 2 2021, 10:02 PM
This revision was automatically updated to reflect the committed changes.