diff --git a/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java b/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java index 023f2ab3765..de25675a597 100644 --- a/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java +++ b/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java @@ -84,7 +84,8 @@ protected void check() { } var matcher = badWords.matcher(moduleLine); while (matcher.find()) { - diagnosticStorage.addDiagnostic(Ranges.create(i, matcher.start(), i, matcher.end()), + diagnosticStorage.addDiagnostic( + Ranges.create(i, matcher.start(), i, matcher.end()), info.getMessage(matcher.group())); } }