Class BSLLanguageServer
java.lang.Object
com.github._1c_syntax.bsl.languageserver.BSLLanguageServer
- All Implemented Interfaces:
ProtocolExtension,org.eclipse.lsp4j.services.LanguageServer
@Component
public class BSLLanguageServer
extends Object
implements org.eclipse.lsp4j.services.LanguageServer, ProtocolExtension
-
Constructor Summary
ConstructorsConstructorDescriptionBSLLanguageServer(LanguageServerConfiguration configuration, BSLTextDocumentService textDocumentService, BSLWorkspaceService workspaceService, CommandProvider commandProvider, ClientCapabilitiesHolder clientCapabilitiesHolder, ServerContext context, org.eclipse.lsp4j.ServerInfo serverInfo) -
Method Summary
Modifier and TypeMethodDescriptiondiagnostics(DiagnosticParams params) voidexit()org.eclipse.lsp4j.services.TextDocumentServiceorg.eclipse.lsp4j.services.WorkspaceServiceCompletableFuture<org.eclipse.lsp4j.InitializeResult>initialize(org.eclipse.lsp4j.InitializeParams params) shutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.lsp4j.services.LanguageServer
cancelProgress, getNotebookDocumentService, initialized, initialized, setTrace
-
Constructor Details
-
BSLLanguageServer
@ConstructorProperties({"configuration","textDocumentService","workspaceService","commandProvider","clientCapabilitiesHolder","context","serverInfo"}) public BSLLanguageServer(LanguageServerConfiguration configuration, BSLTextDocumentService textDocumentService, BSLWorkspaceService workspaceService, CommandProvider commandProvider, ClientCapabilitiesHolder clientCapabilitiesHolder, ServerContext context, org.eclipse.lsp4j.ServerInfo serverInfo)
-
-
Method Details
-
initialize
public CompletableFuture<org.eclipse.lsp4j.InitializeResult> initialize(org.eclipse.lsp4j.InitializeParams params) - Specified by:
initializein interfaceorg.eclipse.lsp4j.services.LanguageServer
-
shutdown
- Specified by:
shutdownin interfaceorg.eclipse.lsp4j.services.LanguageServer
-
exit
public void exit()- Specified by:
exitin interfaceorg.eclipse.lsp4j.services.LanguageServer
-
diagnostics
- Specified by:
diagnosticsin interfaceProtocolExtension- Parameters:
params- Параметры запроса.- Returns:
- Список рассчитанных диагностик.
-
getTextDocumentService
public org.eclipse.lsp4j.services.TextDocumentService getTextDocumentService()- Specified by:
getTextDocumentServicein interfaceorg.eclipse.lsp4j.services.LanguageServer
-
getWorkspaceService
public org.eclipse.lsp4j.services.WorkspaceService getWorkspaceService()- Specified by:
getWorkspaceServicein interfaceorg.eclipse.lsp4j.services.LanguageServer
-