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

Function initialize

src/services/lsp/LSPClient.ts:256–287  ·  view source on GitHub ↗
(params: InitializeParams)

Source from the content-addressed store, hash-verified

254 },
255
256 async initialize(params: InitializeParams): Promise<InitializeResult> {
257 if (!connection) {
258 throw new Error('LSP client not started')
259 }
260
261 checkStartFailed()
262
263 try {
264 const result: InitializeResult = await connection.sendRequest(
265 'initialize',
266 params,
267 )
268
269 capabilities = result.capabilities
270
271 // Send initialized notification
272 await connection.sendNotification('initialized', {})
273
274 isInitialized = true
275 logForDebugging(`LSP server ${serverName} initialized`)
276
277 return result
278 } catch (error) {
279 const err = error as Error
280 logError(
281 new Error(
282 `LSP server ${serverName} initialize failed: ${err.message}`,
283 ),
284 )
285 throw error
286 }
287 },
288
289 async sendRequest<TResult>(
290 method: string,

Callers

nothing calls this directly

Calls 4

checkStartFailedFunction · 0.85
logForDebuggingFunction · 0.85
sendRequestMethod · 0.80
logErrorFunction · 0.50

Tested by

no test coverage detected