()
| 340 | } |
| 341 | |
| 342 | async function flushPendingFloatingNoteRequests(): Promise<void> { |
| 343 | if (flushingFloatingNoteRequests || pendingFloatingNoteRequests.length === 0) return |
| 344 | flushingFloatingNoteRequests = true |
| 345 | try { |
| 346 | const vault = await loadCurrentVaultFromConfig() |
| 347 | if (!vault) { |
| 348 | await ensureMainWindow() |
| 349 | return |
| 350 | } |
| 351 | |
| 352 | const requests = pendingFloatingNoteRequests.splice(0) |
| 353 | for (const relPath of requests) openFloatingNoteWindow(relPath) |
| 354 | } finally { |
| 355 | flushingFloatingNoteRequests = false |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | type ExternalOpenUrlResult = 'none' | 'note' | 'quick-capture' |
| 360 |
no test coverage detected