(text: string)
| 1104 | } |
| 1105 | |
| 1106 | setText(text: string): void { |
| 1107 | this.cancelAutocomplete(); |
| 1108 | this.lastAction = null; |
| 1109 | this.exitHistoryBrowsing(); |
| 1110 | const normalized = this.normalizeText(text); |
| 1111 | // Push undo snapshot if content differs (makes programmatic changes undoable) |
| 1112 | if (this.getText() !== normalized) { |
| 1113 | this.pushUndoSnapshot(); |
| 1114 | } |
| 1115 | this.setTextInternal(normalized); |
| 1116 | } |
| 1117 | |
| 1118 | /** |
| 1119 | * Insert text at the current cursor position. |
nothing calls this directly
no test coverage detected