This is an archive of the discontinued LLVM Phabricator instance.

[clangd][NFC] Improve clangd status messages
ClosedPublic

Authored by qchateau on Dec 18 2020, 7:59 AM.

Details

Summary

clangd actions have various naming schemes, the most
common being PascalCase. This commit applies PascalCase
to all clangd actions, and fix the status rendering
in renderTUAction to look more consistent.

Diff Detail

Event Timeline

qchateau created this revision.Dec 18 2020, 7:59 AM
qchateau requested review of this revision.Dec 18 2020, 7:59 AM

Thanks! Changes to ClangdServer are definitely good, I'm less sure about renderTUAction.

clang-tools-extra/clangd/TUScheduler.cpp
1197

Hmm, I'm not sure if this is more consistent or just different.

In vscode I think this currently renders as "clangd: running CallHierarchy", and after this change it's "clangd: Running CallHierarchy". I'm not sure we need a capital letter here?

1222

(if we do change this, this needs to be capitalized too)

qchateau updated this revision to Diff 313079.Dec 21 2020, 3:57 AM
  • dont capitalize first letter of status
sammccall accepted this revision.Dec 21 2020, 10:39 AM

Thanks, LG - want me to land it?

This revision is now accepted and ready to land.Dec 21 2020, 10:39 AM

Sure !
Email: quentin.chateau@gmail.com

I guess I'll need to ask for commit access

It's up to you - it's easy for me/others to land them on your behalf. Having your own commit access gives you more control, ability to deal with build breakages quickly, fix trivial things without review etc.

This revision was automatically updated to reflect the committed changes.