Skip to content

Commit c49a73e

Browse files
committed
添加宏
1 parent 942a4b3 commit c49a73e

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

CodeService/src/LuaEditorConfig.cpp

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ std::shared_ptr<LuaCodeStyleOptions> LuaEditorConfig::Generate(std::string_view
100100
}
101101
}
102102
}
103+
#ifndef NOT_SURPPORT_FILE_SYSTEM
103104
// [lib/**.lua]
104105
else if (StringUtil::EndWith(sectionPattern, "**.lua"))
105106
{
@@ -127,6 +128,8 @@ std::shared_ptr<LuaCodeStyleOptions> LuaEditorConfig::Generate(std::string_view
127128
luaSections.push_back(section);
128129
}
129130
}
131+
#endif
132+
130133
}
131134

132135
if (_optionPatternMap.count(patternKey) > 0)
@@ -310,32 +313,6 @@ void LuaEditorConfig::ParseFromSection(std::shared_ptr<LuaCodeStyleOptions> opti
310313
}
311314
}
312315

313-
// if (configMap.count("root"))
314-
// {
315-
// options->root = configMap.at("root") == "true";
316-
// }
317-
//
318-
// if (configMap.count("auto_import"))
319-
// {
320-
// options->auto_import = configMap.at("auto_import") == "true";
321-
// }
322-
//
323-
// if (configMap.count("export_root"))
324-
// {
325-
// options->export_root = StringUtil::Replace(configMap.at("export_root"), "${workspace}", _rootWorkspace);
326-
// }
327-
//
328-
// if (configMap.count("import_from"))
329-
// {
330-
// auto splitVec = StringUtil::Split(configMap.at("import_from"), ",");
331-
// std::vector<std::string> from;
332-
// for (auto view : splitVec)
333-
// {
334-
// from.emplace_back(StringUtil::Replace(StringUtil::TrimSpace(view), "${workspace}", _rootWorkspace));
335-
// }
336-
//
337-
// options->import_from = from;
338-
// }
339316

340317
if (options->indent_style == IndentStyle::Tab)
341318
{

0 commit comments

Comments
 (0)