Replies: 2 comments
-
I think what you're referring to is workspace diagnostics which is a planned feature for the red knot language server. This would be similar to how the Python extension provides an option in VS Code called // Analysis scope for showing diagnostics.
// - openFilesOnly: Analyzes and reports errors on only open files.
// - workspace: Analyzes and reports errors on all files in the workspace.
"python.analysis.diagnosticMode": "openFilesOnly", Regarding your query, I'm not sure what the expected output format for the |
Beta Was this translation helpful? Give feedback.
-
@EtienneT You can define a problem matcher manually using a regular expression. The default output format can be parsed with the following:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
riff is amazing, but in vscode it only finds problem in opened files which is fine for performance. But it would be nice to setup a vscode task where you call
uvx ruff check
and it gets parsed in the Problems tab with the problemMatcher. This way you can call ruff check on your whole code base, and have a list of all problems (including files that are not opened) in the Problems tab. You can do something similar with eslint in javascript which is very handy. Right now the python problemMatcher doesn't seem to match the output of ruff check.Beta Was this translation helpful? Give feedback.
All reactions