File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/github/_1c_syntax/bsl/languageserver/configuration Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,12 @@ public class LanguageServerConfiguration {
122122 @ PostConstruct
123123 private void init () {
124124 configurationFile = new File (configurationFilePath );
125- if (configurationFile .exists () && ! configurationFile . isDirectory () ) {
125+ if (configurationFile .exists ()) {
126126 loadConfigurationFile (configurationFile );
127127 return ;
128128 }
129129 var configuration = new File (globalConfigPath );
130- if (configuration .exists () && ! configuration . isDirectory () ) {
130+ if (configuration .exists ()) {
131131 loadConfigurationFile (configuration );
132132 }
133133 }
@@ -175,7 +175,7 @@ public static Path getCustomConfigurationRoot(LanguageServerConfiguration config
175175 }
176176
177177 private void loadConfigurationFile (File configurationFile ) {
178- if (!configurationFile .exists ()) {
178+ if (!configurationFile .exists () || configurationFile . isDirectory () ) {
179179 return ;
180180 }
181181
You can’t perform that action at this time.
0 commit comments