@@ -25,7 +25,7 @@ func (app *App) initLSPClients(ctx context.Context) {
2525func (app * App ) createAndStartLSPClient (ctx context.Context , name string , command string , args ... string ) {
2626 // Create a specific context for initialization with a timeout
2727 logging .Info ("Creating LSP client" , "name" , name , "command" , command , "args" , args )
28-
28+
2929 // Create the LSP client
3030 lspClient , err := lsp .NewClient (ctx , command , args ... )
3131 if err != nil {
@@ -36,13 +36,13 @@ func (app *App) createAndStartLSPClient(ctx context.Context, name string, comman
3636 // Create a longer timeout for initialization (some servers take time to start)
3737 initCtx , cancel := context .WithTimeout (ctx , 30 * time .Second )
3838 defer cancel ()
39-
39+
4040 // Initialize with the initialization context
4141 _ , err = lspClient .InitializeLSPClient (initCtx , config .WorkingDirectory ())
4242 if err != nil {
4343 logging .Error ("Initialize failed" , "name" , name , "error" , err )
4444 // Clean up the client to prevent resource leaks
45- lspClient .Close ()
45+ lspClient .Close () //nolint:errcheck
4646 return
4747 }
4848
@@ -57,13 +57,15 @@ func (app *App) createAndStartLSPClient(ctx context.Context, name string, comman
5757 }
5858
5959 logging .Info ("LSP client initialized" , "name" , name )
60-
60+
6161 // Create a child context that can be canceled when the app is shutting down
6262 watchCtx , cancelFunc := context .WithCancel (ctx )
63-
63+
6464 // Create a context with the server name for better identification
65+ //nolint:staticcheck
66+ //lint:ignore SA1029 will be resolved in the future
6567 watchCtx = context .WithValue (watchCtx , "serverName" , name )
66-
68+
6769 // Create the workspace watcher
6870 workspaceWatcher := watcher .NewWorkspaceWatcher (lspClient )
6971
0 commit comments