MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / UpdateCodeStyle

Method UpdateCodeStyle

CodeFormatLib/src/LuaCodeFormat.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void 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
31void LuaCodeFormat::UpdateDiagnosticStyle(InfoTree &tree) {
32 _diagnosticStyle = LuaDiagnosticStyle();

Callers 1

update_configFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected