### Required

[\[1\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L42-L42)
Async method 'onOpen' has no 'await' expression.

[\[1\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L63-L63)[\[2\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L66-L66)[\[3\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L74-L74)[\[4\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L112-L112)[\[5\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L156-L156)[\[6\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L157-L157)[\[7\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L222-L222)[\[8\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L317-L317)[\[9\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L334-L334)[\[10\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L341-L341)[\[11\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L389-L389)[\[12\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L490-L490)[\[13\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L526-L526)[\[14\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L530-L530)[\[15\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L569-L569)[\[16\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L578-L578)
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.

[\[1\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L393-L393)
Async method 'onClose' has no 'await' expression.

[\[1\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L407-L407)
Unexpected console statement. Only these console methods are allowed: warn, error, debug.



---

### Optional

[\[1\]](https://github.com/lefinite/AI-Prompt-Manager-Obsidian-Plugin/blob/73e072cea59551a772b07248a4809e48319f660b/main.ts#L549-L549)
'existingLeaves' is assigned a value but never used.

