MCPcopy Index your code
hub / github.com/codeaashu/claude-code / shouldDeferLspTool

Function shouldDeferLspTool

src/services/api/claude.ts:786–793  ·  view source on GitHub ↗

* Determines if an LSP tool should be deferred (tool appears with defer_loading: true) * because LSP initialization is not yet complete.

(tool: Tool)

Source from the content-addressed store, hash-verified

784 * because LSP initialization is not yet complete.
785 */
786function 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.

Callers 1

willDeferFunction · 0.85

Calls 1

getInitializationStatusFunction · 0.85

Tested by

no test coverage detected