Skip to content

Commit 2a4d165

Browse files
authored
feat: Register ansible and ansible-jinja languages for formatter (#1179)
* feat: Register `ansible` and `ansible-jinja` languages for formatter * docs: Add changelog after getting issue number * refactor: Change yaml pattern and release tag to follow upstream * docs: Remove version entry in changelog * docs: Improve changelog * docs: Clear update entry
1 parent fec0920 commit 2a4d165

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"onLanguage:dockercompose",
4444
"onLanguage:github-actions-workflow",
4545
"onLanguage:yaml-textmate",
46-
"onLanguage:yaml-tmlanguage"
46+
"onLanguage:yaml-tmlanguage",
47+
"onLanguage:ansible",
48+
"onLanguage:ansible-jinja"
4749
],
4850
"keywords": [
4951
"kubernetes",

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ export function startClient(
123123
{ language: 'github-actions-workflow' },
124124
{ language: 'yaml-textmate' },
125125
{ language: 'yaml-tmlanguage' },
126-
{ pattern: '*.y(a)ml' },
126+
{ language: 'ansible' },
127+
{ language: 'ansible-jinja' },
128+
{ pattern: '**/*.{yaml,yml}' },
127129
],
128130
synchronize: {
129131
// Notify the server about file changes to YAML and JSON files contained in the workspace

0 commit comments

Comments
 (0)