| 37 | |
| 38 | |
| 39 | std::string CodeActionService::GetCode(DiagnosticType code) { |
| 40 | auto it = _diagnosticMap.find(code); |
| 41 | if (it != _diagnosticMap.end()) { |
| 42 | return it->second; |
| 43 | } |
| 44 | |
| 45 | return ""; |
| 46 | } |
| 47 | |
| 48 | void CodeActionService::CodeProtocol(DiagnosticType type, std::string_view code, CodeActionHandleMember handle) { |
| 49 | _diagnosticMap[type] = code; |
no test coverage detected