Search in sources :

Example 1 with BootJavaLanguageServerComponents

use of org.springframework.ide.vscode.boot.java.BootJavaLanguageServerComponents in project sts4 by spring-projects.

the class BootLanguageServer method create.

public static ComposableLanguageServer<CompositeLanguageServerComponents> create(LSFactory<BootLanguageServerParams> _params) {
    return new ComposableLanguageServer<>("vscode-boot", s -> {
        BootLanguageServerParams params = _params.create(s);
        CompositeLanguageServerComponents.Builder components = new CompositeLanguageServerComponents.Builder();
        components.add(new BootPropertiesLanguageServerComponents(s, (ignore) -> params));
        components.add(new BootJavaLanguageServerComponents(s, (ignore) -> params));
        return components.build(s);
    });
}
Also used : BootPropertiesLanguageServerComponents(org.springframework.ide.vscode.boot.properties.BootPropertiesLanguageServerComponents) CompositeLanguageServerComponents(org.springframework.ide.vscode.commons.languageserver.composable.CompositeLanguageServerComponents) LanguageServerComponents(org.springframework.ide.vscode.commons.languageserver.composable.LanguageServerComponents) BootPropertiesLanguageServerComponents(org.springframework.ide.vscode.boot.properties.BootPropertiesLanguageServerComponents) ComposableLanguageServer(org.springframework.ide.vscode.commons.languageserver.composable.ComposableLanguageServer) BootJavaLanguageServerComponents(org.springframework.ide.vscode.boot.java.BootJavaLanguageServerComponents) LSFactory(org.springframework.ide.vscode.commons.languageserver.util.LSFactory) BootJavaLanguageServerComponents(org.springframework.ide.vscode.boot.java.BootJavaLanguageServerComponents) ComposableLanguageServer(org.springframework.ide.vscode.commons.languageserver.composable.ComposableLanguageServer) CompositeLanguageServerComponents(org.springframework.ide.vscode.commons.languageserver.composable.CompositeLanguageServerComponents)

Aggregations

BootJavaLanguageServerComponents (org.springframework.ide.vscode.boot.java.BootJavaLanguageServerComponents)1 BootPropertiesLanguageServerComponents (org.springframework.ide.vscode.boot.properties.BootPropertiesLanguageServerComponents)1 ComposableLanguageServer (org.springframework.ide.vscode.commons.languageserver.composable.ComposableLanguageServer)1 CompositeLanguageServerComponents (org.springframework.ide.vscode.commons.languageserver.composable.CompositeLanguageServerComponents)1 LanguageServerComponents (org.springframework.ide.vscode.commons.languageserver.composable.LanguageServerComponents)1 LSFactory (org.springframework.ide.vscode.commons.languageserver.util.LSFactory)1