Skip to content

Commit d816645

Browse files
committed
Fix formatter registration pattern
The formatter should be registered for all files that end in `.yaml` or `.yml`. The old pattern didn't do this properly. This new pattern should work from my testing. This should mean we don't need to add new entries for each language that's based on YAML (eg. dockercompose, ansible, etc.) in the future. Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent 7924081 commit d816645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/languageserver/handlers/settingsHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class SettingsHandler {
169169
{ language: 'github-actions-workflow' },
170170
{ language: 'yaml-textmate' },
171171
{ language: 'yaml-tmlanguage' },
172-
{ pattern: '*.y(a)ml' },
172+
{ pattern: '**/*.{yaml,yml}' },
173173
],
174174
});
175175
}

0 commit comments

Comments
 (0)