Skip to content

Ineffective range formatting #42

Closed
@ramnes

Description

@ramnes

Hey there, thanks for the great plugin!

It seems that range formatting isn't really effective with python-lsp-black. If you try to format a few lines inside a function, nothing will change:
image

It does work great if you format the whole function, though:
image

Also, it will trim whitespaces if you select those (notice the line returns that disappeared between the two functions):
image

I previously used a (non-LSP) package based on black-machiatto that gave excellent results for that kind of operations.

Would you consider using black-machiatto in python-lsp-black as well for range formatting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions