File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed
src/main/java/com/github/_1c_syntax/bsl/languageserver
diagnostics/infrastructure Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 25
25
import com .github ._1c_syntax .bsl .languageserver .configuration .LanguageServerConfiguration ;
26
26
import com .github ._1c_syntax .bsl .languageserver .context .DocumentContext ;
27
27
import com .github ._1c_syntax .bsl .languageserver .context .symbol .MethodSymbol ;
28
+ import org .springframework .beans .factory .config .BeanDefinition ;
29
+ import org .springframework .context .annotation .Role ;
28
30
import org .springframework .stereotype .Component ;
29
31
30
32
import java .util .Map ;
33
35
* Сапплаер линз, показывающий когнитивную сложность методов.
34
36
*/
35
37
@ Component
38
+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
36
39
public class CognitiveComplexityCodeLensSupplier extends AbstractMethodComplexityCodeLensSupplier {
37
40
38
41
public CognitiveComplexityCodeLensSupplier (
Original file line number Diff line number Diff line change 31
31
import org .springframework .beans .factory .config .BeanDefinition ;
32
32
import org .springframework .context .annotation .Bean ;
33
33
import org .springframework .context .annotation .Configuration ;
34
+ import org .springframework .context .annotation .Lazy ;
34
35
import org .springframework .context .annotation .Role ;
35
36
36
37
import java .util .ArrayList ;
@@ -43,6 +44,7 @@ public class ObjectMapperConfiguration {
43
44
44
45
@ Bean
45
46
@ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
47
+ @ Lazy
46
48
public ObjectMapper objectMapper (
47
49
Collection <CodeLensSupplier <? extends CodeLensData >> codeLensResolvers ,
48
50
Collection <CommandSupplier <? extends CommandArguments >> commandSuppliers
Original file line number Diff line number Diff line change 31
31
import lombok .Getter ;
32
32
import lombok .RequiredArgsConstructor ;
33
33
import lombok .extern .slf4j .Slf4j ;
34
+ import org .springframework .beans .factory .config .BeanDefinition ;
34
35
import org .springframework .cache .annotation .CacheConfig ;
35
36
import org .springframework .cache .annotation .CacheEvict ;
36
37
import org .springframework .cache .annotation .Cacheable ;
38
+ import org .springframework .context .annotation .Lazy ;
39
+ import org .springframework .context .annotation .Role ;
37
40
import org .springframework .context .event .EventListener ;
38
41
import org .springframework .core .io .ClassPathResource ;
39
42
import org .springframework .lang .Nullable ;
59
62
*/
60
63
@ RequiredArgsConstructor
61
64
@ Component
65
+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
62
66
@ Slf4j
63
67
@ CacheConfig (cacheNames = "diagnosticSchemaValidation" )
64
68
public class DiagnosticParameterValidator {
65
69
66
70
private final Resources resources ;
71
+ @ Lazy
67
72
private final ObjectMapper objectMapper ;
68
73
69
74
@ Getter (lazy = true )
Original file line number Diff line number Diff line change 25
25
import com .github ._1c_syntax .bsl .languageserver .configuration .LanguageServerConfiguration ;
26
26
import com .github ._1c_syntax .utils .StringInterner ;
27
27
import lombok .RequiredArgsConstructor ;
28
+ import org .springframework .beans .factory .config .BeanDefinition ;
29
+ import org .springframework .context .annotation .Role ;
28
30
import org .springframework .stereotype .Component ;
29
31
30
32
import java .util .Locale ;
34
36
* Вспомогательный класс для оптимизированного чтения ресурсов прикладных классов с учетом {@link Language}.
35
37
*/
36
38
@ Component
39
+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
37
40
@ RequiredArgsConstructor
38
41
public class Resources {
39
42
You can’t perform that action at this time.
0 commit comments