Class BSLLanguageServer
java.lang.Object
com.github._1c_syntax.bsl.languageserver.BSLLanguageServer
- All Implemented Interfaces:
ProtocolExtension,LanguageServer
@Component
public class BSLLanguageServer
extends Object
implements LanguageServer, ProtocolExtension
-
Constructor Summary
ConstructorsConstructorDescriptionBSLLanguageServer(LanguageServerConfiguration configuration, BSLTextDocumentService textDocumentService, BSLWorkspaceService workspaceService, ClientCapabilitiesHolder clientCapabilitiesHolder, ServerContext context, ServerInfo serverInfo) -
Method Summary
Modifier and TypeMethodDescriptiondiagnostics(DiagnosticParams params)voidexit()A notification to ask the server to exit its process.Provides access to the textDocument services.Provides access to the workspace services.initialize(InitializeParams params)The initialize request is sent as the first request from the client to the server.shutdown()The shutdown request is sent from the client to the server.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, initialized, initialized
-
Constructor Details
-
BSLLanguageServer
@ConstructorProperties({"configuration","textDocumentService","workspaceService","clientCapabilitiesHolder","context","serverInfo"}) public BSLLanguageServer(LanguageServerConfiguration configuration, BSLTextDocumentService textDocumentService, BSLWorkspaceService workspaceService, ClientCapabilitiesHolder clientCapabilitiesHolder, ServerContext context, ServerInfo serverInfo)
-
-
Method Details
-
initialize
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerThe initialize request is sent as the first request from the client to the server. If the server receives request or notification before the initialize request it should act as follows: - for a request the respond should be errored with code: -32001. The message can be picked by the server. - notifications should be dropped, except for the exit notification. This will allow the exit a server without an initialize request. Until the server has responded to the initialize request with an InitializeResult the client must not sent any additional requests or notifications to the server. During the initialize request the server is allowed to sent the notifications window/showMessage, window/logMessage and telemetry/event as well as the window/showMessageRequest request to the client.- Specified by:
initializein interfaceLanguageServer
-
shutdown
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerThe shutdown request is sent from the client to the server. It asks the server to shutdown, but to not exit (otherwise the response might not be delivered correctly to the client). There is a separate exit notification that asks the server to exit.- Specified by:
shutdownin interfaceLanguageServer
-
exit
public void exit()Description copied from interface:org.eclipse.lsp4j.services.LanguageServerA notification to ask the server to exit its process.- Specified by:
exitin interfaceLanguageServer
-
diagnostics
- Specified by:
diagnosticsin interfaceProtocolExtension- Parameters:
params- Параметры запроса.- Returns:
- Список рассчитанных диагностик.
-
getTextDocumentService
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerProvides access to the textDocument services.- Specified by:
getTextDocumentServicein interfaceLanguageServer
-
getWorkspaceService
Description copied from interface:org.eclipse.lsp4j.services.LanguageServerProvides access to the workspace services.- Specified by:
getWorkspaceServicein interfaceLanguageServer
-