Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 'run' setting to only run Ruff on-save #146

Merged
merged 1 commit into from
Jun 17, 2023
Merged

Conversation

charliermarsh
Copy link
Member

Summary

We've had some reports of the extension causing high CPU usage (astral-sh/ruff-vscode#110). This PR enables users to set the extension to only run on-save, rather than on every keystroke.

The API exactly mimics that of the ESLint extension: we have a new setting, run, that accepts either onType (default) or onSave.

@charliermarsh charliermarsh merged commit 17c53a3 into main Jun 17, 2023
@charliermarsh charliermarsh deleted the charlie/on-run branch June 17, 2023 00:38
charliermarsh added a commit to astral-sh/ruff-vscode that referenced this pull request Jun 17, 2023
## Summary

Now supported in the LSP
(astral-sh/ruff-lsp#146): The API exactly mimics
that of the [ESLint
extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint):
we have a new setting, `run`, that accepts either `onType` (default) or
`onSave`.

Closes #110.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant