revert PrintJSON to use key data, to match with documented behaviour

This commit is contained in:
Fabian Dill
2021-03-02 22:36:50 +01:00
parent 7871555620
commit 0917f21384
3 changed files with 7 additions and 3 deletions

View File

@@ -274,4 +274,4 @@ class Hint(typing.NamedTuple):
else:
add_json_text(parts, ".")
return {"cmd": "PrintJSON", "text": parts, "type": "hint"}
return {"cmd": "PrintJSON", "data": parts, "type": "hint"}