From f0fa89c7c290dc136bec532da0a8c8b4bb2e96f9 Mon Sep 17 00:00:00 2001 From: Yevhen Vydolob Date: Tue, 23 Nov 2021 11:36:48 +0200 Subject: [PATCH] Start extension on 'dockercompose' language mode Signed-off-by: Yevhen Vydolob --- package.json | 3 ++- src/extension.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dc849591..9c37a75f 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "virtualWorkspaces": true }, "activationEvents": [ - "onLanguage:yaml" + "onLanguage:yaml", + "onLanguage:dockercompose" ], "keywords": [ "kubernetes", diff --git a/src/extension.ts b/src/extension.ts index 99b33718..37e2cc97 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -107,7 +107,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' }], + documentSelector: [{ language: 'yaml' }, { language: 'dockercompose' }, { 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')],