Skip to content

Commit feae560

Browse files
committed
проверяю количество имен
по замечанию в ПР
1 parent 6106f5b commit feae560

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/utils/MdoReferences.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public String getLocaleMdoRef(DocumentContext documentContext, MD mdo) {
5656
*/
5757
public String getLocaleOwnerMdoName(DocumentContext documentContext, MD mdo) {
5858
final var names = getLocaleMdoRef(documentContext, mdo).split("\\.");
59+
if (names.length <= 1){
60+
return "";
61+
}
5962
return names[0].concat(".").concat(names[1]);
6063
}
6164

0 commit comments

Comments
 (0)