MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / waitForInitialization

Function waitForInitialization

source code/services/lsp/manager.ts:123–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 * @returns Promise that resolves when initialization is complete
122 */
123export async function waitForInitialization(): Promise<void> {
124 // If already initialized or failed, return immediately
125 if (initializationState === 'success' || initializationState === 'failed') {
126 return
127 }
128
129 // If pending and we have a promise, wait for it
130 if (initializationState === 'pending' && initializationPromise) {
131 await initializationPromise
132 }
133
134 // If not started, return immediately (nothing to wait for)
135}
136
137/**
138 * Initialize the LSP server manager singleton.

Callers 1

callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected