Skip to content

Pattern for formatter registration wrong #1147

@datho7561

Description

@datho7561

Describe the bug

This pattern:

Doesn't match .yaml files nor does it match .yml files. This means that if a file has a .yaml or .yml extension but the language is set to something other than YAML (eg. Ansible), then the formatter won't work since it's not registered to work for that file.

Expected Behavior

Any .yaml or .yml file should be able to be formatted using the formatter.

Current Behavior

Some files that have the .yaml extension but use a different language ID (eg. Ansible) cannot be formatted using the formatter.

Steps to Reproduce

See redhat-developer/vscode-yaml#812

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions