From f38ee81e83d22c1e60274d225c20fc9d0520bf88 Mon Sep 17 00:00:00 2001 From: Acaibrid <95097635+A-caibird@users.noreply.github.com> Date: Mon, 24 Mar 2025 21:46:23 +0800 Subject: [PATCH] Treat bun.lock as JSONC (#27359) Closes #27355 This PR treat `bun.lock` file as `.jsonc` note: [bun.lock](https://bun.sh/blog/bun-lock-text-lockfile) is a lockfile of bun.js Release Notes: - Updated `bun.lock` files to be recognized as JSONC. --- crates/languages/src/jsonc/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/languages/src/jsonc/config.toml b/crates/languages/src/jsonc/config.toml index a323d226a0..fb86cb394a 100644 --- a/crates/languages/src/jsonc/config.toml +++ b/crates/languages/src/jsonc/config.toml @@ -1,6 +1,6 @@ name = "JSONC" grammar = "jsonc" -path_suffixes = ["jsonc", "tsconfig.json", "pyrightconfig.json"] +path_suffixes = ["jsonc", "bun.lock", "tsconfig.json", "pyrightconfig.json"] line_comments = ["// "] autoclose_before = ",]}" brackets = [