Skip to content

Commit 3111e86

Browse files
Merge pull request #838 from bmalehorn/vscode-concourse-support-yaml
vscode-concourse: support both .yml and .yaml files
2 parents daee0f4 + 2c3ca43 commit 3111e86

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

vscode-extensions/vscode-concourse/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ for editing [Concourse](https://concourse-ci.org/) Pipeline and Task configurati
88
The Concourse editor automatically activates when the name of the `.yml` file you are editing
99
follows a certain pattern:
1010

11-
- `**/*pipeline*.yml` | `**/pipeline/*.yml` : activates support for editing pipelines
12-
- `**/ci/**/tasks/*.yml` | `**/*task.yml` : activates support for editing tasks.
11+
- `**/*pipeline*.yml` | `**/pipeline/*.yml` | `**/*pipeline*.yaml` | `**/pipeline/*.yaml`: activates support for editing pipelines
12+
- `**/ci/**/tasks/*.yml` | `**/*task.yml` | `**/ci/**/tasks/*.yaml` | `**/*task.yaml` : activates support for editing tasks.
1313

1414
You can also define your own patterns and map them to the language-ids `concourse-pipeline-yaml`
1515
or `concourse-task-yaml` by defining `files.associations` in workspace settings.

vscode-extensions/vscode-concourse/package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
],
7171
"filenamePatterns": [
7272
"*pipeline*.yml",
73-
"**/pipeline/*.yml"
73+
"**/pipeline/*.yml",
74+
"*pipeline*.yaml",
75+
"**/pipeline/*.yaml"
7476
],
7577
"firstLine": "^#(\\s)*pipeline(\\s)*",
7678
"configuration": "./yaml-support/language-configuration.json"
@@ -84,7 +86,11 @@
8486
"**/ci/*task.yml",
8587
"**/ci/**/tasks/*.yml",
8688
"**/concourse/*task.yml",
87-
"**/concourse/**/tasks/*.yml"
89+
"**/concourse/**/tasks/*.yml",
90+
"**/ci/*task.yaml",
91+
"**/ci/**/tasks/*.yaml",
92+
"**/concourse/*task.yaml",
93+
"**/concourse/**/tasks/*.yaml"
8894
],
8995
"firstLine": "^#(\\s)*task(\\s)*",
9096
"configuration": "./yaml-support/language-configuration.json"

0 commit comments

Comments
 (0)