Skip to content

Extention ignores user configured indentation. #75

Open
@MinekPo1

Description

Steps to reproduce:

  1. Set indent to anything different then 4 spaces
  2. Write any code which sorcery suggests a refactoring, which spreads over multiple lines.
    For example:
def foo():
	a = []
	for i in range(10):
		a.append(f"a very long string to force a newline {i} yes this is very long")
  1. Accept the refactoring.

Expected:

The refactoring uses user configured indentation.

Behavior:

The refactoring always uses four spaces for indentation.

This is especially bad, if the user uses tabs for indentations since unless fixed by the user this will cause an error.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions