Commit 1dc8128a authored by Eckhart Arnold's avatar Eckhart Arnold

CSS Fehler behoben

parent b009ddc8
......@@ -526,14 +526,18 @@ class LanguageServer(Server):
cpu_bound = ALL_RPCs # type: Set[str]
blocking = frozenset() # type: Set[str]
def __init__(self):
def __init__(self, additional_rpcs: RPC_Table,
cpu_bound: Set[str] = ALL_RPCs,
blocking: Set[str] = frozenset()):
assert isinstance(additional_rpcs, Dict)
rpc_table = dict() # type: RPC_Table
rpc_table.update(additional_rpcs)
for attr in dir(self):
if attr.startswith('rpc_'):
name = attr[4:].replace('_', '/')
func = getattr(self, attr)
rpc_table[name] = func
super().__init__(rpc_table, self.cpu_bound, self.blocking)
super().__init__(rpc_table, cpu_bound, blocking)
self._server_initialized = False
self._client_initialized = False
......
......@@ -67,7 +67,7 @@ __all__ = ('WHITESPACE_PTYPE',
WHITESPACE_PTYPE = ':Whitespace'
TOKEN_PTYPE = ':Token'
ZOMBIE_TAG = "__ZOMBIE__"
ZOMBIE_TAG = "ZOMBIE__"
#######################################################################
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment