Skip to content

Commit

Permalink
fix: mkdir parents when creating a storage file
Browse files Browse the repository at this point in the history
  • Loading branch information
lopi-py committed Jul 31, 2024
1 parent 2ef36ae commit 5ad1948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/luau-lsp/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end
---@return string
function M.storage_file(key)
local storage = Path:new(vim.fn.stdpath "data") / "luau-lsp"
storage:mkdir()
storage:mkdir { parents = true }

return tostring(storage / key)
end
Expand Down

0 comments on commit 5ad1948

Please sign in to comment.