Skip to content

Visual Studio - Format on Enter no longer removes extra whitespace #28781

Closed
@jessetrinity

Description

@jessetrinity

TypeScript Version:
typescript@3.3.0-dev.20181130

Search Terms:
formatting whitespace

Expected behavior:
Format on Enter previously removed extra whitespace inserted after the indentation on the empty line below var bar;. Caret represents the termination of whitespace on the previous line.

function foo()
{
    var bar;
    
    ^
}

Actual behavior:

Format on Enter no longer removes extra whitespace.

function foo()
{
    var bar;
        
        ^
}

Similar behavior is observed for non-empty lines.
Expected:

var foo;
        ^

Actual:

var foo;     
            ^

Related Issues:
Introduced by #27978

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterDomain: TSServerIssues related to the TSServerVisual StudioIntegration with Visual Studio

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions