Skip to content

Extract local doesn't respect indentation settings #19061

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
function foo(x) {
  let y = [|x ** (x ** x)|] * 2;
}

Set indentation to 2 spaces and extract a constant to the current scope.

Expected:

function foo(x) {
  const newLocal = x ** (x ** x);

  let y = newLocal * 2;
}

Actual:

function foo(x) {
    const newLocal = x ** (x ** x);

  let y = newLocal * 2;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbol

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions