Skip to content

Commit 562ba14

Browse files
authored
Replaced the asterisk based file matching with explicit YAML language IDs (#1209)
* replaced the asterisk based file matching with explicit YAML language IDs Signed-off-by: Morgan Chang <shin19991207@gmail.com> * remove unsupported language IDs Signed-off-by: Morgan Chang <shin19991207@gmail.com> --------- Signed-off-by: Morgan Chang <shin19991207@gmail.com>
1 parent 834c236 commit 562ba14

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@
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:azure-pipelines",
48+
"onLanguage:dockercompose",
49+
"onLanguage:github-actions-workflow",
50+
"onLanguage:home-assistant",
51+
"onLanguage:manifest-yaml",
52+
"onLanguage:spring-boot-properties-yaml"
5053
],
5154
"keywords": [
5255
"kubernetes",

src/extension.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,15 @@ 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' },
128-
{ language: 'ansible-jinja' },
129-
{ pattern: '**/*.{yaml,yml}' },
126+
{ language: 'azure-pipelines' },
127+
{ language: 'dockercompose' },
128+
{ language: 'github-actions-workflow' },
129+
{ language: 'home-assistant' },
130+
{ language: 'manifest-yaml' },
131+
{ language: 'spring-boot-properties-yaml' },
130132
],
131133
synchronize: {
132134
// Notify the server about file changes to YAML and JSON files contained in the workspace

0 commit comments

Comments
 (0)