vscode-ruff icon indicating copy to clipboard operation
vscode-ruff copied to clipboard

Support customized severity

Open Redoubts opened this issue 3 months ago • 2 comments

I like ruff a lot, and am trying to onboard a team to it for vscode. One of the things we don't like, unless I'm missing something, is that everything is a Warning in vscode, regardless what the error code is. I think the front end should make some good default decisions, and allow some customization in a vscode settings file as well.

I've seen #264 and #161, and how they relate to https://github.com/astral-sh/ruff/issues/1256. I think this is something this extension shouldn't have to wait for the CLI tool to handle, however? Something like PLC is definitionally advice tier, and shouldn't be on the same visual level as a PLE code

Redoubts avatar Sep 29 '25 19:09 Redoubts

Thanks for the kind words and the suggestion!

It is an interesting idea to handle this at the level of the extension, but we are planning to work on https://github.com/astral-sh/ruff/issues/1256 before too long, so I think it still makes sense to defer this until then. We should essentially inherit the work in the CLI "for free" in the LSP once it's implemented there.

As noted on the issue, one of the tricky parts of this is designing how to configure severity levels, which would also be needed in both the CLI and in the extension anyway.

ntBre avatar Sep 29 '25 20:09 ntBre

Ok that makes sense. Thanks again for this awesome tooling

Redoubts avatar Sep 29 '25 20:09 Redoubts