Skip to content

Commit 8fce61f

Browse files
committed
Start extension on 'dockercompose' language mode
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
1 parent 653baee commit 8fce61f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"virtualWorkspaces": true
4040
},
4141
"activationEvents": [
42-
"onLanguage:yaml"
42+
"onLanguage:yaml",
43+
"onLanguage:dockercompose"
4344
],
4445
"keywords": [
4546
"kubernetes",

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function startClient(
107107
// Options to control the language client
108108
const clientOptions: LanguageClientOptions = {
109109
// Register the server for on disk and newly created YAML documents
110-
documentSelector: [{ language: 'yaml' }],
110+
documentSelector: [{ language: 'yaml' }, { language: 'dockercompose' }, { pattern: '*.y(a)ml' }],
111111
synchronize: {
112112
// Notify the server about file changes to YAML and JSON files contained in the workspace
113113
fileEvents: [workspace.createFileSystemWatcher('**/*.?(e)y?(a)ml'), workspace.createFileSystemWatcher('**/*.json')],

0 commit comments

Comments
 (0)