Elffuss BraidHub

kikocis/continue public

Add support for isWorkspaceRemote message type in IntelliJ extension
Changesetcec795fa99fd355fa98a5d79576e94b573531d9548a8e0111120d4b3348d6d5e
AuthorNate <sestinj@gmail.com> · 2025-07-02 13:27 -07:00
CommitterNate <sestinj@gmail.com> · 2025-07-02 13:27 -07:00
Parents6aa31bcb5ca9

Browse the files at this changeset

2 files changed

modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt +3 −2
@@ -41,11 +41,12 @@
4141 "getTerminalContents",
4242 "showToast",
4343 "openUrl",
44-
44+ "isWorkspaceRemote",
45+
4546 // These only come from the GUI for now but should be here to prevent confusion
4647 "toggleDevTools",
4748 "showTutorial",
48-
49+
4950 // These are jetbrains only and only come from the GUI for now
5051 // But again including for consistency
5152 "copyText",
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt +6 −1
@@ -202,6 +202,11 @@
202202 respond(contents)
203203 }
204204
205+ "isWorkspaceRemote" -> {
206+ val isRemote = ide.isWorkspaceRemote()
207+ respond(isRemote)
208+ }
209+
205210 "saveFile" -> {
206211 val params = Gson().fromJson(
207212 dataElement.toString(),
@@ -475,7 +480,7 @@
475480 val editor = EditorUtils.getEditor(project)
476481 val rif = editor?.getHighlightedRIF() ?: return
477482
478- val serializedRif = com.github.continuedev.continueintellijextension.RangeInFileWithContents(
483+ val serializedRif = com.github.continuedev.continueintellijextension.RangeInFileWithContents(
479484 filepath = rif.filepath,
480485 range = rif.range,
481486 contents = rif.contents