astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.
Other
1.06k stars 53 forks source link

Ruff VSCode extension(v2024.10.0) adds a blank line at the end when formatting cell #408

Closed Fresh-Mint closed 2 weeks ago

Fresh-Mint commented 7 months ago

Ruff VSCode extension(v2024.10.0) adds a blank line at the end when formatting cell

REPRODUCTION Configure RUFF as formatter. Create a jupyter notebook with a cell with a = 1. From the context menu for the cell, select Format cell.

Julian-J-S commented 7 months ago

I personally had this "bug" appear over the last x versions already but it is hard to reproduce for me. It happens quite frequently but a vscode restart always fixes it 😄

dhruvmanila commented 7 months ago

Hi, thanks for the report. Unfortunately, I cannot reproduce this with the steps you've provided. Can you provide some more details?

https://github.com/astral-sh/ruff/assets/67177269/da3ee704-75be-4fd0-9f6b-98ddcc0f3281

(Transferring this issue to the ruff-vscode repository.)