Skip to content

Cursor jumps to bottom of file when auto-formatting on save #12128

@DetachHead

Description

@DetachHead

this is a very strange bug that i can't seem to minify at all.

to reproduce:

  1. set ruff.nativeServer to true
  2. set editor.formatOnSave to true (it seems to only happen reliably when formatting on save)
  3. insert a newline near the top of a large file (in my case i copied the contents of builtins.pyi into a random .py file in my project)
  4. save the file with ctrl+s
Recording.2024-07-01.115658.mp4

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingserverRelated to the LSP server

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions