| 74 | } |
| 75 | |
| 76 | void ConfigService::UpdateClientConfig(ClientConfig clientConfig) { |
| 77 | |
| 78 | LuaDiagnosticStyle diagnosticStyle; |
| 79 | diagnosticStyle.ParseTree(clientConfig.configTree); |
| 80 | _diagnosticStyle = diagnosticStyle; |
| 81 | |
| 82 | CodeSpellChecker::CustomDictionary dictionary(clientConfig.emmylua_spell_dict.begin(), |
| 83 | clientConfig.emmylua_spell_dict.end()); |
| 84 | auto diagnosticService = _owner->GetService<DiagnosticService>(); |
| 85 | diagnosticService->GetSpellChecker()->SetCustomDictionary(dictionary); |
| 86 | } |
| 87 | |
| 88 | LuaDiagnosticStyle &ConfigService::GetDiagnosticStyle() { |
| 89 | return _diagnosticStyle; |
no test coverage detected