Skip to content

Commit 12d1018

Browse files
committed
fix(scanner): Create config dir if not exists
1 parent 8975ae3 commit 12d1018

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/cmake-tools/scanner.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ function scanner.scan_for_kits()
169169
table.insert(kits, kit)
170170
end
171171
end
172+
if vim.fn.isdirectory(constants.cmake_config_path) == 0 then
173+
vim.fn.mkdir(constants.cmake_config_path, "p")
174+
end
172175
local json_kits = vim.fn.json_encode(kits)
173176
if json_kits then
174177
vim.fn.writefile({ json_kits }, constants.cmake_kits_path)

0 commit comments

Comments
 (0)