Elffuss BraidHub

kikocis/continue public

Merge pull request #6414 from continuedev/nate/add-is-workspace-remote-support

Add support for isWorkspaceRemote message type in IntelliJ extension
Changeset72bc0de62a7093c535b9c45a11c12e65a96febf1f0bcdd12249a5c2f99c720f9
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-02 14:24 -07:00
CommitterGitHub <noreply@github.com> · 2025-07-02 14:24 -07:00
Parents3cf241140902, cec795fa99fd

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