move events library implementation to core:internal/events & disable access to core:internal modules outside of stdlib

This commit is contained in:
MihailRis
2025-08-08 00:29:12 +03:00
parent 5785b9fdda
commit 3760fb86f7
6 changed files with 67 additions and 59 deletions
+2 -5
View File
@@ -43,11 +43,8 @@ function build_files_list(filenames, highlighted_part)
end
end
function on_open(mode)
registry = require "core:internal/scripts_registry"
local files_list = document.filesList
function on_open()
registry = __vc_scripts_registry
filenames = registry.filenames
table.sort(filenames)
build_files_list(filenames)