usernamehw / vscode-error-lens

VSCode extension that enhances display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
MIT License
622 stars 32 forks source link

Create another status bar item #96

Closed usernamehw closed 3 years ago

usernamehw commented 3 years ago

Make status bar similar to embedded one, but this one is highlighted?

VSCode now supports 2 status bar background colors:

Screenshot (184)

https://github.com/microsoft/vscode/issues/22346 https://github.com/microsoft/vscode/issues/51010

usernamehw commented 3 years ago
"errorLens.statusBarIconsEnabled": true,
lonix1 commented 3 years ago

I like this new feature, thanks!

Some questions:

usernamehw commented 3 years ago
  1. There is no background color for info in status bar, so I didn't make a button for it
  2. That's a bug. When testing I made a difference in priority between items to 1000, when it needs to be 1
  3. It should be possible
  4. With extension api - no. If you don't want to waste cpu cycles or something you can try Custom CSS and JS Loader
[id="status.problems"][aria-label*="Error"] .codicon-error {
    color: #dd4653 !important;
}
[id="status.problems"][aria-label*="Warning"] .codicon-warning {
    color: #ff7300 !important;
}
[id="status.problems"][aria-label*="Info"] .codicon-info {
    color: #33cfe4 !important;
}
lonix1 commented 3 years ago

Thanks this is a very nice addition!

I like the custom css idea, but class names change from version to version, and the custom css breaks! :smile: Maybe they'll introduce new api options someday to make all this possible.

GitMensch commented 2 years ago

Just for reference: these were introduced on the vscode side with 1.59: https://code.visualstudio.com/updates/v1_59?ref=refind#_status-bar-warning-colors