fix: Empty file inserts incorrect content
This commit is contained in:
parent
1a1cdb295b
commit
ba9027baea
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ class IdeProtocolClient(
|
|||
|
||||
if (editor.document.text.trim().isEmpty()) {
|
||||
WriteCommandAction.runWriteCommandAction(project) {
|
||||
editor.document.insertString(0, msg)
|
||||
editor.document.insertString(0, params.text)
|
||||
}
|
||||
respond(null)
|
||||
return@launch
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue