:py:mod:`raesl.server.server` ============================= .. py:module:: raesl.server.server .. autoapi-nested-parse:: Language Server class module. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: raesl.server.server.EslServer Functions ~~~~~~~~~ .. autoapisummary:: raesl.server.server.did_open raesl.server.server.did_close raesl.server.server.did_save raesl.server.server.did_change_watched raesl.server.server.did_change_config raesl.server.server.set_trace_notification raesl.server.server._validate raesl.server.server._publish Attributes ~~~~~~~~~~ .. autoapisummary:: raesl.server.server.ls .. py:class:: EslServer Bases: :py:obj:`pygls.server.LanguageServer` ESL Language Server. .. py:attribute:: CONFIG :value: 'esl' .. py:attribute:: CMD_COMPILE_PATH :value: 'esl.compilePath' .. py:method:: update_config() :async: Handle a config update request. .. py:data:: ls .. py:function:: did_open(ls: EslServer, params: pygls.lsp.DidOpenTextDocumentParams) :async: Opened document handling. .. py:function:: did_close(ls: EslServer, params: pygls.lsp.DidCloseTextDocumentParams) :async: Closed document handling. .. py:function:: did_save(ls: EslServer, params: pygls.lsp.DidSaveTextDocumentParams) :async: Saved document handling. .. py:function:: did_change_watched(ls: EslServer, params: pygls.lsp.DidChangeWatchedFilesParams) :async: Changed watched files handling. .. py:function:: did_change_config(ls: EslServer, params: pygls.lsp.DidChangeConfigurationParams) :async: Config changed handling. .. py:function:: set_trace_notification(ls: EslServer, *args) :async: Unkown notification. Probably a config change. .. py:function:: _validate(ls: EslServer, paths: Optional[List[pathlib.Path]] = None) -> bool Validate ESL files on given paths and push diagnostics. .. py:function:: _publish(ls: EslServer, paths: List[pathlib.Path], diag_store: raesl.compile.diagnostics.DiagnosticStore) Publish diagnostics from the Diagnostic Store via the language server.