Fix command query source

pull/1212/head^2
Zef Hemel 2025-01-30 13:32:03 +01:00
parent 9f47c3df30
commit c5162ff605
1 changed files with 9 additions and 1 deletions

View File

@ -85,7 +85,15 @@ export function systemSyscalls(
const commandHook = commonSystem!.commandHook;
const allCommands: { [key: string]: CommandDef } = {};
for (const [cmd, def] of commandHook.editorCommands) {
allCommands[cmd] = def.command;
allCommands[cmd] = {
name: def.command.name,
contexts: def.command.contexts,
priority: def.command.priority,
key: def.command.key,
mac: def.command.mac,
hide: def.command.hide,
requireMode: def.command.requireMode,
};
}
return allCommands;
},