Fix ide service port handler

This commit is contained in:
Luo Tim 2024-06-16 23:38:21 +08:00
parent 360bd78d55
commit 4e70335300
2 changed files with 3 additions and 3 deletions

View File

@ -424,7 +424,7 @@ class IdeaBridge {
}
resviceIDEServicePort(res) {
this.executeHandlers("getIDEServicePort", res.payload?.port);
this.executeHandlers("getIDEServicePort", res.payload);
}
resviceSendUserMessage(res) {

View File

@ -161,8 +161,8 @@ const chatPanel = observer(() => {
APIUtil.createEvent({name: e, value: e})
})
messageUtil.registerHandler("getIDEServicePort", (port: number) => {
IDEServiceUtil.config(port)
messageUtil.registerHandler("getIDEServicePort", (data: any) => {
IDEServiceUtil.config(data.result)
})
messageUtil.sendMessage({ command: "getIDEServicePort" });