Refactor, cleanup

This commit is contained in:
Zef Hemel
2025-06-12 20:30:01 +02:00
parent b942ebabad
commit 8d3dc4cc4e
120 changed files with 1139 additions and 1101 deletions
+3 -4
View File
@@ -9,6 +9,9 @@ export class CommandHook extends EventEmitter<CommandHookEvents>
implements Hook<CommandHookT> {
editorCommands = new Map<string, AppCommand>();
system!: System<CommandHookT>;
throttledBuildAllCommands = throttle(() => {
this.buildAllCommands();
}, 200);
constructor(
private readOnly: boolean,
@@ -17,10 +20,6 @@ export class CommandHook extends EventEmitter<CommandHookEvents>
super();
}
throttledBuildAllCommands = throttle(() => {
this.buildAllCommands();
}, 200);
buildAllCommands() {
this.editorCommands.clear();
for (const plug of this.system.loadedPlugs.values()) {