From 10d2353e07d0311c342568248e9570f0a855a4ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=8F=E7=99=BD?= <364772080@qq.com> Date: Mon, 22 Jul 2024 22:46:52 +0800 Subject: [PATCH] windows: Treat `settings.json` as JSONC (#14944) Before this PR, comments in `settings.json` are marked with red lines, indicating that `"comments are not allowed in JSON."` ![Screenshot 2024-07-22 153951](https://github.com/user-attachments/assets/fbb631e8-43cf-4473-97c0-50c83c4d6ab1) After this PR, this issue is resolved. ![Screenshot 2024-07-22 153527](https://github.com/user-attachments/assets/ee0f7877-c623-4caa-94cd-97e82f9b8945) Release Notes: - N/A --- assets/settings/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/settings/default.json b/assets/settings/default.json index b3190df1a4..6f23f76e0f 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -705,7 +705,7 @@ // "file_types": { "JSON": ["flake.lock"], - "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "tsconfig.json"] + "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "tsconfig.json"] }, // The extensions that Zed should automatically install on startup. //