Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

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

Merged
charliermarsh merged 1 commit intomainfrom
charlie/on-run
Jun 17, 2023
Merged

Add a 'run' setting to only run Ruff on-save#146
charliermarsh merged 1 commit intomainfrom
charlie/on-run

Conversation

@charliermarsh
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant