| 16 | } |
| 17 | |
| 18 | void LuaCodeFormat::UpdateCodeStyle(const std::string &workspaceUri, const std::string &configPath) { |
| 19 | for (auto &config: _configs) { |
| 20 | if (config.Workspace == workspaceUri) { |
| 21 | config.Editorconfig = LuaEditorConfig::OpenFile(configPath); |
| 22 | return; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | auto &config = _configs.emplace_back( |
| 27 | workspaceUri); |
| 28 | config.Editorconfig = LuaEditorConfig::OpenFile(configPath); |
| 29 | } |
| 30 | |
| 31 | void LuaCodeFormat::UpdateDiagnosticStyle(InfoTree &tree) { |
| 32 | _diagnosticStyle = LuaDiagnosticStyle(); |