Skip to content

Commit

Permalink
Improve auto-assignment of ansible language to files (#1330)
Browse files Browse the repository at this point in the history
* recognise main.yml files inside roles as ansible files

* recognise ansible files based on modelines
  • Loading branch information
priyamsahoo authored Jun 11, 2024
1 parent de73148 commit 10a6a1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -701,12 +701,15 @@
"**/playbooks/*.yml",
"**/playbooks/*.yaml",
"**/*playbook*.yml",
"**/*playbook*.yaml"
"**/*playbook*.yaml",
"**/roles/**/main.yml",
"**/roles/**/main.yaml"
],
"filenames": [
"site.yml",
"site.yaml"
],
"firstLine": "# code: language=ansible",
"configuration": "./ansible-language-configuration.json"
},
{
Expand Down

0 comments on commit 10a6a1f

Please sign in to comment.