Skip to content

Commit 1684407

Browse files
committed
fix(terminal): correct terminal message sending logic
Update the terminal message sending logic to use `sendString` with `false` instead of `writePlainMessage`. This ensures proper handling of terminal input without unnecessary revalidation and repainting.
1 parent a16f7cf commit 1684407

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

exts/ext-terminal/src/main/kotlin/cc/unitmesh/terminal/sketch/TerminalSketchProvider.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,7 @@ class TerminalSketchProvider : LanguageSketchProvider {
174174
titleLabel.text = "Terminal - ($content)"
175175

176176
ApplicationManager.getApplication().invokeLater {
177-
// terminalWidget!!.terminalStarter?.sendString(content, true)
178-
terminalWidget!!.writePlainMessage(content)
179-
terminalWidget!!.revalidate()
180-
terminalWidget!!.repaint()
177+
terminalWidget!!.terminalStarter?.sendString(content, false)
181178
}
182179

183180
isAlreadySent = true

0 commit comments

Comments
 (0)