| 30 | } |
| 31 | |
| 32 | void ConfigService::LoadEditorconfig(std::string_view workspace, std::string_view filePath) { |
| 33 | std::string path(filePath); |
| 34 | for (auto &config: _styleConfigs) { |
| 35 | if (config.Workspace == workspace) { |
| 36 | config.Editorconfig = LuaEditorConfig::OpenFile(path); |
| 37 | return; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | auto &config = _styleConfigs.emplace_back( |
| 42 | std::string(workspace)); |
| 43 | config.Editorconfig = LuaEditorConfig::OpenFile(path); |
| 44 | } |
| 45 | |
| 46 | void ConfigService::LoadLanguageTranslator(std::string_view filePath) { |
| 47 | std::string path(filePath); |
no test coverage detected