blob: 771d419a46d68bc7e41963a8d3264ab78caccbb7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
local fs = require "mason-core.fs"
local M = {}
---@async
---@param path string
---@param contents string
---@param flags string
function M.write_file(path, contents, flags)
fs.async.write_file(
path,
table.concat({
"-- THIS FILE IS GENERATED. DO NOT EDIT MANUALLY.",
"-- stylua: ignore start",
contents,
}, "\n"),
flags
)
end
return M
|