selfint / code-blocks

Manipulate code as blocks
https://marketplace.visualstudio.com/items?itemName=selfint.code-blocks
MIT License
6 stars 0 forks source link

Python force move bug #108

Closed selfint closed 1 year ago

selfint commented 1 year ago

Input:

from dataclasses import dataclass

@dataclass
class A:
    def __init__(self) -> None:
        ...

    def foo(self) -> None:
        ...

def main():
    ...

if __name__ == "__main__":
    main()

Trying to force move foo to be below @dataclass\nclass A fails dramatically.

This is probably because the order we are changing the text is wrong?