Skip to content

.editorconfig [[bash]] does not work #1351

@loynoir

Description

@loynoir

Code editor

vscode

Platform

Linux

Version

mads-hartmann.bash-ide-vscode@1.43.0

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

Always.

What is the expected behavior?

When editorconfig

[[bash]]
switch_case_indent = true

x.sh formatted into

#!/bin/bash

case "$1" in
  42)
    echo 42
    ;;
esac

What do you see instead?

When editorconfig

[[bash]]
switch_case_indent = true
#!/bin/bash

case "$1" in
42)
  echo 42
  ;;
esac

Additional information

When editorconfig empty

x.sh formatted into

#!/bin/bash

case "$1" in
42)
  echo 42
  ;;
esac

When editorconfig

[*.sh]
switch_case_indent = true

x.sh formatted into

#!/bin/bash

case "$1" in
  42)
    echo 42
    ;;
esac

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions