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

Method LoadEditorconfig

CodeFormatServer/src/Service/ConfigService.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void 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
46void ConfigService::LoadLanguageTranslator(std::string_view filePath) {
47 std::string path(filePath);

Callers 2

OnInitializeMethod · 0.80
OnEditorConfigUpdateMethod · 0.80

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected