Skip to content

Commit b1dfa16

Browse files
committed
修复lib配置用错的问题
1 parent 68d22b5 commit b1dfa16

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CodeFormatLib/src/LuaCodeFormat.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ Result<std::vector<LuaDiagnosticInfo>> LuaCodeFormat::SpellCheck(const std::stri
183183

184184
LuaStyle style = GetStyle(uri);
185185

186-
LuaDiagnosticStyle diagnosticStyle;
187-
DiagnosticBuilder diagnosticBuilder(style, diagnosticStyle);
186+
DiagnosticBuilder diagnosticBuilder(style, _diagnosticStyle);
188187
_spellChecker.SetCustomDictionary(tempDict);
189188
diagnosticBuilder.SpellCheck(t, _spellChecker);
190189
return MakeDiagnosticInfo(diagnosticBuilder.GetDiagnosticResults(t), file);
@@ -207,8 +206,7 @@ Result<std::vector<LuaDiagnosticInfo>> LuaCodeFormat::NameStyleCheck(const std::
207206

208207
LuaStyle style = GetStyle(uri);
209208

210-
LuaDiagnosticStyle diagnosticStyle;
211-
DiagnosticBuilder diagnosticBuilder(style, diagnosticStyle);
209+
DiagnosticBuilder diagnosticBuilder(style, _diagnosticStyle);
212210

213211
diagnosticBuilder.NameStyleCheck(t);
214212
return MakeDiagnosticInfo(diagnosticBuilder.GetDiagnosticResults(t), file);

0 commit comments

Comments
 (0)