Merge pull request #5892 from continuedev/dallin/jetbrains-highlighted-code
Fix Cmd J not working in Jetbrains
This commit is contained in:
commit
15660fb6df
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue