diff --git a/package.json b/package.json index aca4156e..ee1cf784 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ }, "activationEvents": [ "onLanguage:yaml", - "onLanguage:dockercompose" + "onLanguage:dockercompose", + "onLanguage:github-actions-workflow" ], "keywords": [ "kubernetes", diff --git a/src/extension.ts b/src/extension.ts index df025f7c..f505a76f 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: 'github-actions-workflow' }, { 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')],