From fd57a1b6cde3165d2aecd1ddaedaf4d5659b5636 Mon Sep 17 00:00:00 2001 From: Denzel <> Date: Tue, 17 Mar 2026 13:25:00 +0100 Subject: [PATCH] fix(presets): regression handling bom in preset files --- lua/cmake-tools/presets.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmake-tools/presets.lua b/lua/cmake-tools/presets.lua index 7c502fac..c40d273b 100644 --- a/lua/cmake-tools/presets.lua +++ b/lua/cmake-tools/presets.lua @@ -38,7 +38,7 @@ local function decode(file, visited) visited[abs_file_path] = true - local data = vim.fn.json_decode(file_path:read()) + local data = vim.fn.json_decode(vim.fn.readfile(abs_file_path)) if not data then error(string.format("Could not parse %s", abs_file_path)) end