(sourceInfo = false)
| 94 | } |
| 95 | |
| 96 | getAutoText(sourceInfo = false) { |
| 97 | const textParts = [] as string[]; |
| 98 | if (this.getPredictionText()) { |
| 99 | textParts.push(this.getPredictionText()); |
| 100 | } else if (this.getLastText()) { |
| 101 | textParts.push(this.getLastText()); |
| 102 | } |
| 103 | if (sourceInfo) { |
| 104 | const sourceInfoText = this.getSourceInfo(); |
| 105 | if (sourceInfoText) textParts.push(sourceInfoText); |
| 106 | } |
| 107 | return textParts.join(' '); |
| 108 | } |
| 109 | |
| 110 | getLang() { |
| 111 | return this.progressItem?.lang; |
no test coverage detected