You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* * This file is a part of BSL Language Server. * * Copyright (c) 2018-2023 * Alexey Sosnoviy <labotamy@gmail.com>, Nikita Fedkin <nixel2007@gmail.com> and contributors * * SPDX-License-Identifier: LGPL-3.0-or-later * * BSL Language Server is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * * BSL Language Server is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with BSL Language Server. */packagecom.github._1c_syntax.bsl.languageserver.utils;importcom.github._1c_syntax.bsl.languageserver.context.DocumentContext;importcom.github._1c_syntax.bsl.mdo.MD;importcom.github._1c_syntax.bsl.mdo.support.ScriptVariant;importlombok.experimental.UtilityClass;@UtilityClasspublicclassMdoReferences { publicStringgetLocaleMdoRef(DocumentContextdocumentContext, MDmdo) { finalvarmdoReference = mdo.getMdoReference(); if (documentContext.getServerContext().getConfiguration().getScriptVariant() == ScriptVariant.ENGLISH) { returnmdoReference.getMdoRef(); } returnmdoReference.getMdoRefRu(); } publicStringgetLocaleOwnerMdoName(DocumentContextdocumentContext, MDmdo) { finalvarnames = getLocaleMdoRef(documentContext, mdo).split("\\."); returnnames[0].concat(".").concat(names[1]); }}
1
+
/*
2
+
* This file is a part of BSL Language Server.
3
+
*
4
+
* Copyright (c) 2018-2023
5
+
* Alexey Sosnoviy <labotamy@gmail.com>, Nikita Fedkin <nixel2007@gmail.com> and contributors
6
+
*
7
+
* SPDX-License-Identifier: LGPL-3.0-or-later
8
+
*
9
+
* BSL Language Server is free software; you can redistribute it and/or
10
+
* modify it under the terms of the GNU Lesser General Public
11
+
* License as published by the Free Software Foundation; either
12
+
* version 3.0 of the License, or (at your option) any later version.
13
+
*
14
+
* BSL Language Server is distributed in the hope that it will be useful,
15
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+
* Lesser General Public License for more details.
18
+
*
19
+
* You should have received a copy of the GNU Lesser General Public
0 commit comments