Skip to content

Commit eb9fb4d

Browse files
added dockercompose and github actions in setting handler
Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
1 parent de78c0e commit eb9fb4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/languageserver/handlers/settingsHandlers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ export class SettingsHandler {
163163
if (enableFormatter) {
164164
if (!this.yamlSettings.formatterRegistration) {
165165
this.yamlSettings.formatterRegistration = this.connection.client.register(DocumentFormattingRequest.type, {
166-
documentSelector: [{ language: 'yaml' }],
166+
documentSelector: [
167+
{ language: 'yaml' },
168+
{ language: 'dockercompose' },
169+
{ language: 'github-actions-workflow' },
170+
{ pattern: '*.y(a)ml' },
171+
],
167172
});
168173
}
169174
} else if (this.yamlSettings.formatterRegistration) {

0 commit comments

Comments
 (0)