containsErrorCode checks if the error code is in the list
(codes []int32, code int32)
| 377 | |
| 378 | // containsErrorCode checks if the error code is in the list |
| 379 | func containsErrorCode(codes []int32, code int32) bool { |
| 380 | return slices.Contains(codes, code) |
| 381 | } |
| 382 | |
| 383 | // convertToLSPCodeAction converts an internal CodeAction to an LSP CodeAction |
| 384 | func convertToLSPCodeAction(action *CodeAction, diag *lsproto.Diagnostic, uri lsproto.DocumentUri) lsproto.CommandOrCodeAction { |
no test coverage detected