phindle / error-lens

Visual Studio Code extension which enhances the display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=PhilHindle.errorlens
MIT License
89 stars 40 forks source link

Change Error highlight style? #6

Closed ianizaguirre closed 5 years ago

ianizaguirre commented 5 years ago

Is it possible to make the errors look like sublime errors that have a border instead of highlighting the whole line? Reference image can be seen in this post: https://github.com/Microsoft/vscode/issues/9209

phindle commented 5 years ago

Yes, that's a good idea. I will add this to the backlog and aim to have this in the 1.1.0 release.

ianizaguirre commented 5 years ago

Just letting you know that I figured out a way to do this, using the "Custom CSS Loader" extension.

So this was my end result:

vscode-squiggly-error-to-outline-error

phindle commented 5 years ago

I'm not sure how this could be implemented without depending on the CSS Loader extension or somehow hacking the style which VSCode uses for rendering the diagnostics. If anyone has any ideas, would be good to learn of them.

ianizaguirre commented 5 years ago

This is how I did it , maybe it will help you -> Post

phindle commented 5 years ago

Thanks @ianizaguirre - I had seen your post, it's a neat solution, however, as I mentioned, I think this requires using the CSS loader extension, and it looks like anyone using that extension needs to do some custom setup, so it doesn't seem like something I wanted to use.