(task: TaskInfo, plugin: TaskNotesPlugin)
| 1387 | } |
| 1388 | |
| 1389 | private getContextOptions(task: TaskInfo, plugin: TaskNotesPlugin): string[] { |
| 1390 | const knownContexts = plugin.cacheManager.getAllContexts?.() ?? []; |
| 1391 | const options = normalizeContextList([...knownContexts, ...(task.contexts ?? [])]); |
| 1392 | return options.sort((a, b) => a.localeCompare(b)); |
| 1393 | } |
| 1394 | |
| 1395 | private async openContextInput(task: TaskInfo, plugin: TaskNotesPlugin): Promise<void> { |
| 1396 | const context = await showTextInputModal(plugin.app, { |
no test coverage detected