vscode-custom-local-formatters
vscode-custom-local-formatters copied to clipboard
Wrong formatter when saving `.blade.php`
Hi,
"[blade]": {
"editor.defaultFormatter": "jkillian.custom-local-formatters"
},
"[php]": {
"editor.defaultFormatter": "jkillian.custom-local-formatters"
},
"customLocalFormatters.formatters": [
{
"command": "/var/www/stdin-blade-stdout.sh",
"languages": [
"blade"
]
},
{
"command": "/var/www/stdin-pint-stdout.sh",
"languages": [
"php"
]
}
],
- I need to format 2 types of files,
.blade.phpand.php - They are known to VSCode as
bladeandphp - But when I save on
.blade.phpfiles,stdin-pint-stdout.shgets executed instead
Any ideas why? Thank you!
I found the issue.
I uninstalled the other blade formatters and it caused the blade language to disappear. The fix was to reinstall one of them. Perhaps allowing users to add define their own languages can be part of this package, although it doesn't seem possible from my quick glance of the VSCode docs. :)
Thanks for documenting this issue in case others hit it! I'm going to close this out for now because I don't think there's anything else actionable.