diff --git a/README.md b/README.md index d7856e9e9c2734ac46419fc47d664638e7ec2592..f8ffbf460e551812391d3fd5e305ea9a0c0e2e2c 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Supports multiple GitLab instances [Read more](#multiple-gitlab-instances). Published also on [Open VSX Registry](https://open-vsx.org/extension/GitLab/gitlab-workflow). -You can use [autocompletion of GitLab CI variables](#ci-variable-autocompletion) in your `.gitlab-ci.yml`. +You can use [autocompletion of GitLab CI variables](#ci-variable-autocompletion) in your `.gitlab-ci.yml` pipeline file. If you have additional pipeline files you would like to use autocomplete with, it matches on any file beginning with `.gitlab-ci` and ending with `.yml` or `.yaml`. For example: `.gitlab-ci.production.yml`. ## Setup diff --git a/src/extension.js b/src/extension.js index 1c905fa8a6f039e389e880a6c9aa81fd7698010a..e9372434c453ceb04bf7493477543c2b041a486c 100644 --- a/src/extension.js +++ b/src/extension.js @@ -99,7 +99,7 @@ const registerCommands = (context, outputChannel) => { const registerCiCompletion = context => { const subscription = vscode.languages.registerCompletionItemProvider( - { pattern: '**/.gitlab-ci.{yml,yaml}' }, + { pattern: '**/.gitlab-ci*.{yml,yaml}' }, new CiCompletionProvider(), '$', );