From 1e31e772d348bbb86a4687e651e5b50216b0cbf0 Mon Sep 17 00:00:00 2001 From: Artur Ayukhanov Date: Sun, 26 Nov 2023 09:43:44 +0300 Subject: [PATCH] Update src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java Co-authored-by: Nikita Fedkin --- .../bsl/languageserver/diagnostics/BadWordsDiagnostic.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())); } }