-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from devchat-ai/get-ide-service-port
Get IDE service port
- Loading branch information
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
Submodule gui
updated
3 files
+37 −0 | src/util/IDEServiceUtil.ts | |
+22 −0 | src/util/ideaBridge.ts | |
+6 −0 | src/views/pages/ChatPanel.tsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/kotlin/ai/devchat/core/handlers/GetIDEServicePortRequestHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ai.devchat.core.handlers | ||
|
||
import ai.devchat.core.BaseActionHandler | ||
import ai.devchat.core.DevChatActions | ||
import ai.devchat.plugin.ideServerPort | ||
import com.alibaba.fastjson.JSONObject | ||
|
||
|
||
|
||
class GetIDEServicePortRequestHandler(requestAction: String, metadata: JSONObject?, payload: JSONObject?) : BaseActionHandler( | ||
requestAction, | ||
metadata, | ||
payload | ||
) { | ||
override val actionName: String = DevChatActions.GET_IDE_SERVICE_PORT_RESPONSE | ||
override fun action() { | ||
send(payload= mapOf("port" to ideServerPort)) | ||
} | ||
} |