From a53b3b6b10f685050f1c10d24102fd0d937a0943 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 5 Jul 2024 21:52:47 +0300 Subject: [PATCH] Explicitly specify php files' formatter for prettier (#13883) Closes https://github.com/zed-industries/zed/issues/13878 Seems that all regular files types are being recognized by Prettier from their paths, but the PHP one does not despite the PHP plugin used when formatting. Release Notes: - Fixed PHP prettier formatting, by including `php` parser name into formatting queries ([13878](https://github.com/zed-industries/zed/issues/13878)) --- assets/settings/default.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/settings/default.json b/assets/settings/default.json index c07bc601bf..3d13dd7cf0 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -775,7 +775,8 @@ "PHP": { "prettier": { "allowed": true, - "plugins": ["@prettier/plugin-php"] + "plugins": ["@prettier/plugin-php"], + "parser": "php" } }, "Ruby": {