Skip to content

Commit f021929

Browse files
committed
fixed auto-complete reply, and added empty metadata
1 parent b8635e5 commit f021929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/pyscript/jupyter_kernel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,9 @@ async def shell_handler(self, msg):
314314
"matches": sorted(list(words)),
315315
"cursor_start": msg["content"]["cursor_pos"] - len(root),
316316
"cursor_end": msg["content"]["cursor_pos"],
317+
"metadata": {},
317318
}
318-
await self.send(self.shell_socket, 'complete_request', content, parent_header=msg['header'], identities=identities)
319+
await self.send(self.shell_socket, 'complete_reply', content, parent_header=msg['header'], identities=identities)
319320
elif msg['header']["msg_type"] == "is_complete_request":
320321
code = msg['content']["code"]
321322
self.ast_ctx.parse(code)

0 commit comments

Comments
 (0)