Return result for JSON RPC

This commit is contained in:
Ivan Kravets
2023-04-24 18:20:15 +03:00
parent 1e5a728f3c
commit 0acf968b2d

View File

@@ -50,7 +50,7 @@ class IDERPC:
def on_command_result(self, cmd_id, value):
if cmd_id not in self._cmd_queue:
return
return False
if self._cmd_queue[cmd_id]["method"] == "get_pio_project_dirs":
value = [str(Path(p).resolve()) for p in value]
self._cmd_queue[cmd_id]["future"].set_result(value)