Skip to content

Commit 96dad0d

Browse files
committed
replaced the asterisk based file matching with explicit YAML language IDs
Signed-off-by: Morgan Chang <shin19991207@gmail.com>
1 parent 834c236 commit 96dad0d

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,19 @@
4141
},
4242
"activationEvents": [
4343
"onLanguage:yaml",
44-
"onLanguage:dockercompose",
45-
"onLanguage:github-actions-workflow",
4644
"onLanguage:yaml-textmate",
4745
"onLanguage:yaml-tmlanguage",
4846
"onLanguage:ansible",
49-
"onLanguage:ansible-jinja"
47+
"onLanguage:ansible-jinja",
48+
"onLanguage:azure-pipelines",
49+
"onLanguage:dockercompose",
50+
"onLanguage:github-actions-workflow",
51+
"onLanguage:home-assistant",
52+
"onLanguage:home-assistant-jinja",
53+
"onLanguage:jekyll",
54+
"onLanguage:manifest-yaml",
55+
"onLanguage:sls",
56+
"onLanguage:spring-boot-properties-yaml"
5057
],
5158
"keywords": [
5259
"kubernetes",

src/extension.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,19 @@ export function startClient(
120120
// Register the server for on disk and newly created YAML documents
121121
documentSelector: [
122122
{ language: 'yaml' },
123-
{ language: 'dockercompose' },
124-
{ language: 'github-actions-workflow' },
125123
{ language: 'yaml-textmate' },
126124
{ language: 'yaml-tmlanguage' },
127125
{ language: 'ansible' },
128126
{ language: 'ansible-jinja' },
129-
{ pattern: '**/*.{yaml,yml}' },
127+
{ language: 'azure-pipelines' },
128+
{ language: 'dockercompose' },
129+
{ language: 'github-actions-workflow' },
130+
{ language: 'home-assistant' },
131+
{ language: 'home-assistant-jinja' },
132+
{ language: 'jekyll' },
133+
{ language: 'manifest-yaml' },
134+
{ language: 'sls' },
135+
{ language: 'spring-boot-properties-yaml' },
130136
],
131137
synchronize: {
132138
// Notify the server about file changes to YAML and JSON files contained in the workspace

0 commit comments

Comments
 (0)