Fix ide service port handler
This commit is contained in:
parent
360bd78d55
commit
4e70335300
@ -424,7 +424,7 @@ class IdeaBridge {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resviceIDEServicePort(res) {
|
resviceIDEServicePort(res) {
|
||||||
this.executeHandlers("getIDEServicePort", res.payload?.port);
|
this.executeHandlers("getIDEServicePort", res.payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
resviceSendUserMessage(res) {
|
resviceSendUserMessage(res) {
|
||||||
|
@ -161,8 +161,8 @@ const chatPanel = observer(() => {
|
|||||||
APIUtil.createEvent({name: e, value: e})
|
APIUtil.createEvent({name: e, value: e})
|
||||||
})
|
})
|
||||||
|
|
||||||
messageUtil.registerHandler("getIDEServicePort", (port: number) => {
|
messageUtil.registerHandler("getIDEServicePort", (data: any) => {
|
||||||
IDEServiceUtil.config(port)
|
IDEServiceUtil.config(data.result)
|
||||||
})
|
})
|
||||||
|
|
||||||
messageUtil.sendMessage({ command: "getIDEServicePort" });
|
messageUtil.sendMessage({ command: "getIDEServicePort" });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user