Skip to content

Commit 9bbc2c2

Browse files
change from private variable
not sure why i did this... pretty pointless
1 parent 520a2ef commit 9bbc2c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/djls/agent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class LSPAgent:
1717
def __init__(self):
1818
from .handlers import handlers
1919

20-
self._handlers = handlers
20+
self.handlers = handlers
2121
logger.debug(
22-
"LSPAgent initialized with handlers: %s", list(self._handlers.keys())
22+
"LSPAgent initialized with handlers: %s", list(self.handlers.keys())
2323
)
2424

2525
async def serve(self):
@@ -71,7 +71,7 @@ async def handle_request(self, request_data: bytes) -> Message:
7171
messages_pb2.Error.INVALID_REQUEST, "No command specified"
7272
)
7373

74-
handler = self._handlers.get(command_name)
74+
handler = self.handlers.get(command_name)
7575
if not handler:
7676
logger.error("Unknown command: %s", command_name)
7777
return self.create_error(

0 commit comments

Comments
 (0)