Merge pull request #5892 from continuedev/dallin/jetbrains-highlighted-code

Fix Cmd J not working in Jetbrains
This commit is contained in:
Dallin Romney 2025-05-28 23:06:39 -07:00 • committed by GitHub
commit 15660fb6df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -504,10 +504,16 @@ class IdeProtocolClient(
val editor = EditorUtils.getEditor(project)
val rif = editor?.getHighlightedRIF() ?: return
val serializedRif = com.github.continuedev.continueintellijextension.RangeInFileWithContents(
filepath = rif.filepath,
range = rif.range,
contents = rif.contents
)
continuePluginService.sendToWebview(
"highlightedCode",
HighlightedCodePayload(
rangeInFileWithContents = rif,
rangeInFileWithContents = serializedRif,
shouldRun = edit
)
)

View file

@ -232,7 +232,7 @@ data class ApplyState(
)
data class HighlightedCodePayload(
val rangeInFileWithContents: RangeInFileWithContents,
val rangeInFileWithContents: com.github.continuedev.continueintellijextension.RangeInFileWithContents,
val prompt: String? = null,
val shouldRun: Boolean? = null
)