Skip to content

Commit 4068342

Browse files
committed
修复一些问题,降低建议数量
1 parent 32538b0 commit 4068342

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CodeFormatLib/src/CodeFormatLib.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,11 @@ int spell_suggest(lua_State* L)
559559
lua_rawseti(L, -2, count);
560560
count++;
561561
}
562+
// 15个已经可以了
563+
if (count == 15)
564+
{
565+
break;
566+
}
562567
}
563568

564569
return 2;

CodeFormatLib/src/LuaCodeFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ std::vector<LuaDiagnosisInfo> LuaCodeFormat::SpellCheck(const std::string& uri,
141141

142142
DiagnosisContext ctx(parser, *options);
143143

144-
_codeSpellChecker->Analysis(ctx);
144+
_codeSpellChecker->Analysis(ctx, tempDict);
145145

146146
return ctx.GetDiagnosisInfos();
147147
}

0 commit comments

Comments
 (0)