-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ruff.applyFormat
now formats an entire notebook document (#11493)
## Summary Previously, `ruff.applyFormat`, seen in VS Code as the command `Ruff: Format Document`, would only format the currently active notebook cell inside a notebook document. This PR makes `ruff.applyFormat` format the entire notebook document at once, operating on each code cell in order. ## Test Plan 1. Open a notebook document that has multiple unformatted code cells. 2. Run `Ruff: Format Document` through the Command Palette (`Ctrl/Cmd+Shift+P` by default) 3. Observe that all code cells in the notebook have been formatted.
- Loading branch information
1 parent
f0046ab
commit 3cb2e67
Showing
2 changed files
with
64 additions
and
14 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