mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-07-19 10:25:15 +00:00
change from private variable
not sure why i did this... pretty pointless
This commit is contained in:
parent
520a2eff59
commit
9bbc2c2c3a
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,9 @@ class LSPAgent:
|
|||
def __init__(self):
|
||||
from .handlers import handlers
|
||||
|
||||
self._handlers = handlers
|
||||
self.handlers = handlers
|
||||
logger.debug(
|
||||
"LSPAgent initialized with handlers: %s", list(self._handlers.keys())
|
||||
"LSPAgent initialized with handlers: %s", list(self.handlers.keys())
|
||||
)
|
||||
|
||||
async def serve(self):
|
||||
|
@ -71,7 +71,7 @@ class LSPAgent:
|
|||
messages_pb2.Error.INVALID_REQUEST, "No command specified"
|
||||
)
|
||||
|
||||
handler = self._handlers.get(command_name)
|
||||
handler = self.handlers.get(command_name)
|
||||
if not handler:
|
||||
logger.error("Unknown command: %s", command_name)
|
||||
return self.create_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue