Skip to content

CloudFormation formatter does not respect chosen indentation #8356

@lionello

Description

@lionello

const tabSize = config.get<number>('tabSize', 2)

This is hardcoded to 2 regardless of the indentation chosen in the VSCode editor.

Expected

When I pick a certain indentation in VSCode, I expect the formatter to respect it.

Image

Actual

When formatting CloudFormation YAML file, the items are reindented using a "tab" size of 2, even when I selected indentation size 4. When I have all my CloudFormation YAMLs with a certain indentation size, enabling this VSCode extension certainly changes the entire file, forcing me to enable/disable the extension to avoid unnecessary churn on files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions