File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -297,10 +297,7 @@ func (ls *INOLanguageServer) InitializeReqFromIDE(ctx context.Context, logger js
297
297
}
298
298
299
299
func (ls * INOLanguageServer ) ShutdownReqFromIDE (ctx context.Context , logger jsonrpc.FunctionLogger ) * jsonrpc.ResponseError {
300
- logger .Logf ("Sending shutdown notification to clangd..." )
301
300
ls .Clangd .conn .Shutdown (context .Background ())
302
- logger .Logf ("Arduino Language Server is shutting down." )
303
- ls .Close ()
304
301
return nil
305
302
}
306
303
@@ -812,7 +809,9 @@ func (ls *INOLanguageServer) InitializedNotifFromIDE(logger jsonrpc.FunctionLogg
812
809
}
813
810
814
811
func (ls * INOLanguageServer ) ExitNotifFromIDE (logger jsonrpc.FunctionLogger ) {
815
- logger .Logf ("Notification is not propagated to clangd" )
812
+ ls .Clangd .conn .Exit ()
813
+ logger .Logf ("Arduino Language Server is shutting down." )
814
+ os .Exit (0 )
816
815
}
817
816
818
817
func (ls * INOLanguageServer ) TextDocumentDidOpenNotifFromIDE (logger jsonrpc.FunctionLogger , inoParam * lsp.DidOpenTextDocumentParams ) {
You can’t perform that action at this time.
0 commit comments