-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Description
Ref: ansible/vscode-ansible#597
.vscode/extensions.json:
.vscode/settings.json:
// Workspace settings override user settings.
{
"files.associations": {
"*.j2": "ansible-jinja",
"**/defaults/**/*.yml": "ansible-jinja",
"**/group_vars/**/*": "ansible-jinja",
"**/host_vars/**/*": "ansible-jinja",
"**/vars/**/*.yml": "ansible-jinja",
"**/tasks/**/*.yml": "ansible",
"**/handlers/*.yml": "ansible",
"**/meta/*.yml": "ansible",
"**/roles/**/*.yml": "ansible",
"**/playbooks/**/*.yml": "ansible",
"**/ansible/**/hosts": "properties",
"**/ansible/**/inventory": "properties",
"ansible.cfg": "properties",
},
"[ansible]": {
"editor.defaultFormatter": "redhat.vscode-yaml",
"editor.formatOnSave": true,
},
// redhat.ansible
"ansible.ansibleLint.enabled": true,
"ansible.ansibleLint.arguments": "",
}When I press Format document, vscode complains that There is no formatter for 'ansible' files installed.
Everything works, if replace
"editor.defaultFormatter": "redhat.vscode-yaml",
with
"editor.defaultFormatter": "esbenp.prettier-vscode",.
So it's looks like redhat.vscode-yaml issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
{ // List of extensions which should be recommended for users of this workspace. "recommendations": [ "redhat.ansible", "redhat.vscode-yaml", ] }