diff --git a/modules/adapters/util/lsp.py b/modules/adapters/util/lsp.py index 458c401..27740a7 100644 --- a/modules/adapters/util/lsp.py +++ b/modules/adapters/util/lsp.py @@ -31,8 +31,8 @@ async def request(session_name: str, method: str, params: Any) -> Any: del _futures[_id] - if resolve := command_response.get('resolve'): - return resolve + if 'resolve' in command_response: + return command_response.get('resolve') raise core.Error(command_response.get('reject') or 'Expected `resolve` or `reject`')