Skip to content

Commit 11af2b5

Browse files
committed
修改临时词典算法
1 parent 4068342 commit 11af2b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CodeService/src/Spell/CodeSpellChecker.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ void CodeSpellChecker::IdentifyAnalysis(DiagnosisContext& ctx, LuaToken& token,
154154
{
155155
std::shared_ptr<IdentifyParser> parser = nullptr;
156156
std::string text(token.Text);
157+
158+
if (tempDict.count(text) != 0)
159+
{
160+
return;
161+
}
162+
157163
auto it = _caches.find(text);
158164
if (it != _caches.end())
159165
{

0 commit comments

Comments
 (0)