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

Disable files highlight in explorer #1244

Closed
senyaak opened this issue May 4, 2021 · 9 comments
Closed

Disable files highlight in explorer #1244

senyaak opened this issue May 4, 2021 · 9 comments
Labels
info-needed Issue requires more information from poster

Comments

@senyaak
Copy link

senyaak commented May 4, 2021

Didn't find any way to disable ESLint highlighting in explorer. Did I miss it, or it is just alway on?

@dbaeumer
Copy link
Member

@senyaak what kind of highlighting are you referring to. Can you please provide steps about how to reproduce what you are seeing including what you are actually expecting.

@dbaeumer dbaeumer added the info-needed Issue requires more information from poster label May 10, 2021
@senyaak
Copy link
Author

senyaak commented May 10, 2021

@dbaeumer For example I have some project. I open in in vscode and all files in the explorer are white. When I do some changes in file A.js, vcs(in my case git) make this files color in explorer green. If Eslint find some problems in the file - it makes A.js files color=rgb(248, 128, 112). I would supress the color changing so I can see all vcs changes.
(there are also counter of the issues in the file, I would love to still have it, but not color changes)
Hope it is understandable ;)

@dbaeumer
Copy link
Member

This is not a ESLint feature. It is a general VS Code feature and can be customized using settings.
capture

@senyaak
Copy link
Author

senyaak commented May 10, 2021

@dbaeumer Wrong, it is esling highlighting, which overwrite git highlighting. If I disable eslint, then I see only white + git green colors. When I enable eslint, I see white, green and the ESlint orange?rgb(248, 128, 112) colors.
Also the eslint issues count in the file just can't be git feature...

@dbaeumer
Copy link
Member

It is because the file has errors in it. If you disable Problems > Decorations then ESLint errors in a file will not make the file redish in the explorer. It is not the the ESLint extension actively changes the color of a file in the explorer.

@senyaak
Copy link
Author

senyaak commented May 11, 2021

This is the issue, if I turn it off, the number of errors, which is placed right of the file name, will disappear too. Also it will supress other errors(for example TS errors) which I want to see.
Looks like some design issue in vscode/plugin. I would love to configure this highlightings and other indicators for every plugin I use.
Good exaple: If I work on some project where a lot of eslint errors, author do not care about and do not fix them. And I have to implement some featuren. I need to see only 'real' errors and not eslint errors. Now I have to use another tool to achive that or just look over all highlited files.
But anyway thank you for the tip. At least something

@dbaeumer
Copy link
Member

You can reconfigure rules using the eslint.rules.customizations setting which will support off soon as well

@mephitrpg
Copy link

How can I do that exactly?

@dbaeumer
Copy link
Member

The readme in ESLint extension has an example how to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants