Skip to content

Commit

Permalink
Add YAML to CSpell languageSettings
Browse files Browse the repository at this point in the history
Commit 21ef5bd updated VSCode CSpell extension ("code-spell-checker")
settings to refine spell checking for specific file types.

This commit will update `cspell.json` to configure YAML spell checking.
Note that spurious errors will be reported when using some YAML-related
VSCode extensions like vscode-github-actions. This may be due to how
VSCode extensions can define custom language identifiers. In the case of
vscode-github-actions, it overrides the YAML language identifier with a
custom identifier `github-actions-workflow`.

https://code.visualstudio.com/docs/languages/identifiers
https://github.com/github/vscode-github-actions/blob/e335065be26968146ecf63aa1a06e54b6b546839/package.json#L32-L63
  • Loading branch information
br3ndonland committed Jan 6, 2025
1 parent 03b32d0 commit b7d12e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vscode/User/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
{
"languageId": "vue",
"includeRegExpList": ["(<!--).*(-->)", "CStyleComment"]
},
{
"languageId": "yaml",
"includeRegExpList": ["/#.*/"]
}
],
"words": [
Expand Down

0 comments on commit b7d12e7

Please sign in to comment.