-
Notifications
You must be signed in to change notification settings - Fork 28k
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
Colorization Broken - Cannot disable Code Lens References #111036
Comments
The actual problem is that the colorization seems broken when there are zero references to the code item, so I have changed the title. |
Here are the java specific settings from settings.json |
Please file this issue in the repo for the Java extension |
Hi Rob
The issue is not specific to Java or the file type. I can reproduce it with a .tsx file.
IMO, It is an issue with code lens and how it colors methods that have zero references.
However, I should be able to disable this setting but cannot.
Should I provide you with an example of another file type?
---
Dave
On Nov 21, 2020, at 11:32 AM, Rob Lourens <notifications@github.com> wrote:
Please file this issue in the repo for the Java extension
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#111036 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAAE4U4GJGKGEMRXIXPADRTSRAIWJANCNFSM4T46M44Q>.
|
Sure, it would be easier for me to follow with a TS example. I wouldn't think that codelens affects colorization |
This is the graying out caused by "unused symbols". I don't know why the graying out is so strong in this case, but it could be caused by some specific theme or by some color customization. |
@alexdima Unused code makes the text more transparent. We have't greyed out code for a long time (only was in one or two releases when the unused feature first rolled out) @dfdumaresq I can't reproduce the reference code lens settings not working. Does this reproduce in the latest VS Code insiders build with all extensions disabled? |
@mjbvz - it does work correctly with the latest VC Code insiders build and all extensions disabled. Here you can see I've renamed the IInstitution interface by adding 1 and 0 references shows up as grey while the actual code remains colourized. |
@dfdumaresq Please report the issue also to |
Issue Type: Bug
When the Code Lens References annotation shows 0 references, it causes the colorization of my code to appear grey. Very ugly.
Not having found a way to prevent this, other than turning off Code Lens in the Editor, which I don't wish to do, I am attempting to disable References settings.
"java.referencesCodeLens.enabled": false
However, it remains Enabled.
Here you see java colorization is normal.
![image](https://user-images.githubusercontent.com/20051/99820712-fdee0f00-2b05-11eb-9c44-23a2cd02afde.png)
After scrolling up where the 0 references annotation appears, the colorization turns ugly.
![image](https://user-images.githubusercontent.com/20051/99820868-2ece4400-2b06-11eb-83e8-bfdf0841e037.png)
Notice in the settings screen on the right that References is Enabled, even though the checkbox is off.
VS Code version: Code 1.51.1 (e5a624b, 2020-11-11T01:11:34.018Z)
OS version: Darwin x64 19.6.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (64)
The text was updated successfully, but these errors were encountered: