Skip to content

Commit 8711fab

Browse files
committed
lib 导出 typeformat
1 parent 3201d1e commit 8711fab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CodeFormatLib/src/CodeFormatLib.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ int type_format(lua_State* L)
213213
auto typeFormat = LuaCodeFormat::GetInstance().TypeFormat(filename, line, character, std::move(text),
214214
configMap);
215215

216-
if(!typeFormat.HasFormatResult())
216+
if (!typeFormat.HasFormatResult())
217217
{
218218
lua_pushboolean(L, false);
219219
return 1;
@@ -736,6 +736,7 @@ int spell_suggest(lua_State* L)
736736
static const luaL_Reg lib[] = {
737737
{"format", format},
738738
{"range_format", range_format},
739+
{"type_format", type_format},
739740
{"update_config", update_config},
740741
{"diagnose_file", diagnose_file},
741742
{"set_default_config", set_default_config},

0 commit comments

Comments
 (0)