Write an initial project module if not present
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user