* Determines if an LSP tool should be deferred (tool appears with defer_loading: true) * because LSP initialization is not yet complete.
(tool: Tool)
| 784 | * because LSP initialization is not yet complete. |
| 785 | */ |
| 786 | function shouldDeferLspTool(tool: Tool): boolean { |
| 787 | if (!('isLsp' in tool) || !tool.isLsp) { |
| 788 | return false |
| 789 | } |
| 790 | const status = getInitializationStatus() |
| 791 | // Defer when pending or not started |
| 792 | return status.status === 'pending' || status.status === 'not-started' |
| 793 | } |
| 794 | |
| 795 | /** |
| 796 | * Per-attempt timeout for non-streaming fallback requests, in milliseconds. |
no test coverage detected