astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem squigglies for E999 'unexpected )' are hard to see

leogott opened this issue · comments

When typing or leaving a mismatched ')', the underlined Problem is only a single character long.
This is hard to spot while other things are happening in the editor; especially when used in combination with other Linters and or colorful token styling, but particularly because running ruff on every keystroke means there's usually a red trail behind my cursor.

Additionally the matched paren may not be the actual problem. Instead it may be the previous right – or left one.

I request an option to extend the matched range by at least four characters, but I'd be happy to hear about workarounds!
(I tried styling the background color of error ranges, but that looks horrible for every other kind of error)