Jane Lewis
Jane Lewis
## Summary Fixes https://github.com/astral-sh/ruff/issues/10594. Code actions to disable a diagnostic via `noqa` comment are now available. https://github.com/astral-sh/ruff/assets/19577865/6d3bcf11-a9d9-499b-8c7f-a10cd39cfbba `DiagnosticFix` has been changed so that `noqa` code actions appear even for diagnostics...
## Summary Fixes https://github.com/astral-sh/ruff-vscode/issues/425 (though only in the pre-release version, since this is a feature for the new LSP server) This is a follow-up to https://github.com/astral-sh/ruff-vscode/pull/456. A new setting has...
This is still a work in progress, but I'm making a PR now to get some early feedback on this. This fixes issue #61.
## Summary Fixes #11506. `RuffSettingsIndex::new` now searches for configuration files in parent directories. ## Test Plan I confirmed that the original test case described in the issue worked as expected.
## Summary Fixes #11534. `DocumentQuery::source_type` now returns `PySourceType::Stub` when the document is a `.pyi` file. ## Test Plan I confirmed that stub-specific rule violations appeared with a build from this...
The `diagnostic` field on `WorkspaceClientCapabilities` is actually supposed to be called `diagnostics`. This can be confirmed in the [LSP specification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#clientCapabilities). A consequence of this mis-naming is that `DiagnosticWorkspaceClientCapabilities` are never...
## Summary Closes #11112. This PR implements snapshot tests which verify that the resolved configuration, taken from a filesystem configuration value and a set of resolved editor settings, remains consistent....
Similar to https://github.com/astral-sh/ruff/issues/11912, we need snapshot tests to verify that the contents of code actions, both quick fixes and source actions, remain consistent with various test documents.
Specifically, we need snapshot tests to verify that diagnostics remain consistent for various test documents.