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
+1 -1
View File
@@ -256,7 +256,7 @@ function open_file_in_editor(filename, line, mutable)
end
function on_open(mode)
registry = require "core:internal/scripts_registry"
registry = __vc_scripts_registry
document.codePanel:setInterval(200, refresh_file_title)
+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)