From 4313b07bfb0bfa68d919121c9b745b75e71a0eb3 Mon Sep 17 00:00:00 2001 From: theshadowco Date: Thu, 11 Jan 2024 09:31:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B5=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=82=D0=B8=D0=BF=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bsl/languageserver/diagnostics/RefOveruseDiagnostic.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/RefOveruseDiagnostic.java b/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/RefOveruseDiagnostic.java index 0371f8a5608..0029f2548c9 100644 --- a/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/RefOveruseDiagnostic.java +++ b/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/RefOveruseDiagnostic.java @@ -248,6 +248,7 @@ private List getTabularSectionNames(SDBLParser.MdoContext mdo) { .map(configuration::findChild) .filter(Optional::isPresent) .map(Optional::get) + .filter(TabularSectionOwner.class::isInstance) .map(TabularSectionOwner.class::cast) .flatMap(RefOveruseDiagnostic::getTabularSectionNames) .collect(Collectors.toList());