Skip to content

Commit 9d46a1e

Browse files
committed
refactor: Reduce noise while scanning for kits
1 parent e3723fe commit 9d46a1e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lua/cmake-tools/scanner.lua

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ end
131131

132132
-- Main function to scan for kits
133133
function scanner.scan_for_kits()
134-
vim.notify("Scanning for kits…")
135-
136134
local executables = get_path_executables()
137135
local toolchains = discover_toolchains(executables)
138136
local kits = {}
@@ -160,11 +158,6 @@ function scanner.scan_for_kits()
160158
local toolchain_file = find_toolchain_file(tc.prefix)
161159
if toolchain_file then
162160
kit.toolchainFile = toolchain_file
163-
vim.notify("Toolchain file found: " .. toolchain_file)
164-
else
165-
if tc.prefix ~= "" then
166-
vim.notify("No toolchain file found for prefix: " .. tc.prefix, vim.log.levels.WARN)
167-
end
168161
end
169162
table.insert(kits, kit)
170163
end
@@ -175,11 +168,7 @@ function scanner.scan_for_kits()
175168
local json_kits = vim.fn.json_encode(kits)
176169
if json_kits then
177170
vim.fn.writefile({ json_kits }, constants.cmake_kits_path)
178-
vim.notify("Kits saved to: " .. constants.cmake_kits_path)
179-
else
180-
vim.notify("Failed to encode kits to JSON.", vim.log.levels.ERROR)
181171
end
182-
vim.notify("Scanning complete.")
183172
return kits
184173
end
185174

0 commit comments

Comments
 (0)