Write an initial project module if not present

This commit is contained in:
Francesco Abbate
2022-01-09 23:26:11 +01:00
parent a703840068
commit 5032e7352e
2 changed files with 43 additions and 0 deletions
+3
View File
@@ -142,6 +142,9 @@ command.add(nil, {
end,
["core:open-project-module"] = function()
if not system.get_file_info(".lite_project.lua") then
core.try(core.write_init_project_module, ".lite_project.lua")
end
local doc = core.open_doc(".lite_project.lua")
core.root_view:open_doc(doc)
doc:save()