Skip to content

Commit 9cf8ec2

Browse files
Support dockercompose and github-actions-workflow (#17101)
Co-authored-by: SUZUKI Sosuke <[email protected]>
1 parent 59e3696 commit 9cf8ec2

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

changelog_unreleased/yaml/17101.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#### Support dockercompose and github-actions-workflow in VSCode (#17101 by @remcohaszing)
2+
3+
Prettier now supports the `dockercompose` and `github-actions-workflow` languages in Visual Studio Code.

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"devcontainer",
6565
"devs",
6666
"docblocks",
67+
"dockercompose",
6768
"doctag",
6869
"Dodds",
6970
"Dolzhykov",

src/language-yaml/languages.evaluate.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import createLanguage from "../utils/create-language.js";
44
const languages = [
55
createLanguage(linguistLanguages.YAML, (data) => ({
66
parsers: ["yaml"],
7-
vscodeLanguageIds: ["yaml", "ansible", "home-assistant"],
7+
vscodeLanguageIds: [
8+
"yaml",
9+
"ansible",
10+
"dockercompose",
11+
"github-actions-workflow",
12+
"home-assistant",
13+
],
814
// yarn.lock is not YAML: https://github.com/yarnpkg/yarn/issues/5629
915
filenames: [
1016
...data.filenames.filter((filename) => filename !== "yarn.lock"),

tests/integration/__tests__/__snapshots__/support-info.js.snap

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,13 @@ exports[`CLI --support-info (stdout) 1`] = `
771771
"parsers": ["yaml"],
772772
"tmScope": "source.yaml",
773773
"type": "data",
774-
"vscodeLanguageIds": ["yaml", "ansible", "home-assistant"]
774+
"vscodeLanguageIds": [
775+
"yaml",
776+
"ansible",
777+
"dockercompose",
778+
"github-actions-workflow",
779+
"home-assistant"
780+
]
775781
}
776782
],
777783
"options": [

0 commit comments

Comments
 (0)