From da6150e1e4d1156ee58cc83834f223ca42376e58 Mon Sep 17 00:00:00 2001 From: RedCMD <33529441+RedCMD@users.noreply.github.com> Date: Sun, 9 Feb 2025 21:42:42 +1300 Subject: [PATCH 1/2] Add languages `yaml-textmate` & `yaml-tmlanguage` --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')], From ff12b0b428d3556e5aeb292cfd0170dec4b15dbb Mon Sep 17 00:00:00 2001 From: RedCMD <33529441+RedCMD@users.noreply.github.com> Date: Tue, 11 Mar 2025 20:38:14 +1300 Subject: [PATCH 2/2] Add to `activationEvents` --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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",