MaskRay / vscode-ccls

ccls plugin for Visual Studio Code
122 stars 37 forks source link

highlighting for unused symbols #117

Open ojanvafai opened 3 years ago

ojanvafai commented 3 years ago

Observed behavior

For JS/TS files, VSCode dims unused symbols. It's a really nice feature I'd love to have in C++ as well. Would it be possible to add support for unused symbol highlighting to the existing highlighting settings? Even if it's not enabled by default, it would be nice to be able to configure it.

image

System information

nkaretnikov commented 2 years ago

@MaskRay hi, any comment on this? i'd also want to have a way to configure unused code highlighting. because vscode itself lacks in this department: https://github.com/microsoft/vscode/issues/138593 and it is probably something that should be in an extension like ccls.

nkaretnikov commented 2 years ago

... maybe with a squiggly line like for undefined variables (yellow) or errors (red), but with a different color:

Screen Shot 2021-12-07 at 17 09 55