vscode-custom-local-formatters icon indicating copy to clipboard operation
vscode-custom-local-formatters copied to clipboard

Wrong formatter when saving `.blade.php`

Open bilogic opened this issue 1 year ago • 1 comments

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"
            ]
        }
    ],
  1. I need to format 2 types of files, .blade.php and .php
  2. They are known to VSCode as blade and php
  3. But when I save on .blade.php files, stdin-pint-stdout.sh gets executed instead

Any ideas why? Thank you!

bilogic avatar May 21 '23 22:05 bilogic