diff --git a/package.json b/package.json index f35b32e1..ee218fe5 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,9 @@ }, "activationEvents": [ "onLanguage:yaml", - "onLanguage:dockercompose" + "onLanguage:dockercompose", + "onLanguage:yaml-textmate", + "onLanguage:yaml-tmlanguage" ], "keywords": [ "kubernetes", diff --git a/src/extension.ts b/src/extension.ts index df025f7c..8fcd82fa 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -116,7 +116,7 @@ export function startClient( // Options to control the language client const clientOptions: LanguageClientOptions = { // Register the server for on disk and newly created YAML documents - documentSelector: [{ language: 'yaml' }, { language: 'dockercompose' }, { pattern: '*.y(a)ml' }], + documentSelector: [{ language: 'yaml' }, { language: 'dockercompose' }, { language: 'yaml-textmate' }, { language: 'yaml-tmlanguage' }, { pattern: '*.y(a)ml' }], synchronize: { // Notify the server about file changes to YAML and JSON files contained in the workspace fileEvents: [workspace.createFileSystemWatcher('**/*.?(e)y?(a)ml'), workspace.createFileSystemWatcher('**/*.json')],