Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highlighting for unused symbols #117

Open
ojanvafai opened this issue Mar 8, 2021 · 2 comments
Open

highlighting for unused symbols #117

ojanvafai opened this issue Mar 8, 2021 · 2 comments

Comments

@ojanvafai
Copy link

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

  • ccls: stable 0.20201219 (bottled), HEAD
  • OS: Mac
  • Editor: VSCode
  • vscode-ccls version: v0.1.29
@nkaretnikov
Copy link

nkaretnikov commented Dec 7, 2021

@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: microsoft/vscode#138593 and it is probably something that should be in an extension like ccls.

@nkaretnikov
Copy link

... 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants