-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Portion of file where deleted lines show as red #161386
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.71.2. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
This is the latest updated version still seeing the same issue |
Which colour are we thinking of here? And what might be the expected ETA? |
Any thoughts on this @daviddossett, @alexdima? |
I think it makes sense to use the same color we use for diffs—green for inserted, red for deleted. Not to discount the issue, but I think that benefit outweighs the overlap with errors IMO. It would be strange to use a different color in the editor. We could possible use a pattern or shape (like a mini version of the line deleted arrow) in the minimap to distinguish it from errors. @lszomoru is it even possible do customize anything beyond the color in the minimap? |
Currently only the color can be changed in the minimap gutter decoration rendering |
I looked into this and it appears that we represent deleted lines in the gutter and errors inline with the line/word(s) highlighted. I believe this is the right thing to do since it essentially matches what we do in the editor. Changing the color to be different in the minimap will likely cause more confusion. What did you have in mind, @anuj98? @alexdima I was going to suggest to override the colors in settings.json but I can't seem to get this to work. Similarly, I can't override the base color
Any ideas why this only works when changing the inherited color value here?
|
@daviddossett The following worked for me:
|
Ah ok I think my mistake was using |
@daviddossett, what is the status of this issue? Thank you! |
I'd suggest we close this issue given the findings above. |
Type: Bug
In normal file and not in git compare, whenever a line is deleted it shows as red color in the right section. It causes confusion as the this color matches with the color whenver there is an error in code.
VS Code version: Code 1.71.0 (784b017, 2022-09-01T07:36:10.600Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Sandboxed: No
System Info
Extensions (13)
The text was updated successfully, but these errors were encountered: