Gray out unused variables
Check for existing issues
- [X] Completed
Describe the feature
Gray out unused variables, such as the following in VS code attached (b is unused).
I believe most LSPs, including Pylance for python, has this info, we just need to show it in the editor, ideally configurable.
If applicable, add mockups / screenshots to help present your vision of the feature
+1, please also make this configurable for unused imports.
Here is an example:
What is happening now (Zed)
Code responsible
"themes": [
{
"name": "XY-Zed",
"appearance": "dark",
"style": {
"unreachable": "#aca8aeff",
"unreachable.background": "#262933ff",
"unreachable.border": "#2b2f38ff",
}
}
]
What I would like to configure (VS Code)
Code responsible
"workbench.colorCustomizations": {
"editorUnnecessaryCode.opacity": "#0000005e"
}
Missing this a lot working with Python, specially with unused imports.
Zed already supports greying out unused code right? (perhaps it got added over the past year?) At least it works for Javascript. The one remaining thing to support is customizing the opacity. Right now (code ref) it appears to be fixed at 0.3 which is too similar for my liking.
If it doesn't work for other languages perhaps the LSP isn't fully integrated.
Current Zed does support graying out of unused variables, so I think I will close this issue out. Feel free to open a new issue explaining what sort of settings around this you'd like to see, if you would like that feature.