forked from astral-sh/ruff-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for disabling the linter (astral-sh#361)
## Summary This PR enables users to specify `"ruff.lint.enable": false` to use the LSP (or extension) solely for formatting. "Organize Imports" is still supported even when the linter is disabled. See: astral-sh/ruff-vscode#329. ## Test Plan - Ran the VS Code extension. - Verified that diagnostics appeared for unused imports. - Set `"ruff.lint.enable": false`. - Verified that the diagnostics disappeared. - Ran "Organize Imports". - Verified that the imports were sorted. - Ran "Fix All". - Verified that the imports (which were unused) were not removed.
- Loading branch information
1 parent
ed12cbf
commit 523bbfc
Showing
3 changed files
with
97 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters