Skip to content

Extract function doesn't respect indentation settings #18328

Closed
@mjbvz

Description

@mjbvz

From @dbaeumer on August 30, 2017 8:35

Testing: #33282

function foo() {
	console.log('Hello World');
}
  • observe: console.log is indented using tabs
  • select console.log('Hello World');
  • run extract function
  • you get
function foo() {
    newFunction();
}
function newFunction() {
    console.log('Hello World');
}

Observe: spaces are used as indentation.

Copied from original issue: microsoft/vscode#33492

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbolFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions