Skip to content

Indentation problem with switch statements #93

Closed
@gseerden

Description

@gseerden

Hi,

I have encountered a problem when indenting a ts file with ggVG=. The indentation seems to be broken within switch statements.

let foo = {
    name: 'hello'
};

foo.title = 'Hello';

if (true) {
    let bar = {};
    let correctIndentation = {};
}

switch(foo.name) {
    case 'hello':
        let bar = {};
    let wrongIndentation = {};
    break;
        default:
        break;
}

Thanks a lot for your plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions