Skip to content

Incorrect indentation provided (v1.4) #1201

Description

@derekcicerone-zz

I'm trying out the latest master code for TypeScript language services via eclipse-typescript and getting some weird results for the getIndentationAtPosition() call.

For this code (I mangled it a bit to simplify and obscure the original sources):

module My.App {
    export var appModule = angular.module("app", [
    ]).config([() => {

        configureStates($stateProvider);


    }]).run(My.App.setup);
}

A call to getIndentationAtPosition() at the end of the "configureStates..." line gives back 19 when I believe it should be much smaller (like 8). I'm guessing all the nested arrays and stuff might be messing up the calculation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions