Editor refactor: extract system stuff

This commit is contained in:
Zef Hemel
2023-07-14 13:44:30 +02:00
parent 87b0e7e352
commit b39a9b8e22
8 changed files with 240 additions and 190 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export function systemSyscalls(
},
"system.listCommands": (): { [key: string]: CommandDef } => {
const allCommands: { [key: string]: CommandDef } = {};
for (let [cmd, def] of editor.commandHook.editorCommands) {
for (const [cmd, def] of editor.system.commandHook.editorCommands) {
allCommands[cmd] = def.command;
}
return allCommands;