(thatMark: MarkEntry[])
| 235 | } |
| 236 | |
| 237 | private async decorateThatMark(thatMark: MarkEntry[]) { |
| 238 | const decorationTypes = this.getDecorationStyles(); |
| 239 | return Promise.all([ |
| 240 | displayPendingEditDecorations( |
| 241 | thatMark |
| 242 | .filter(({ isSource }) => isSource) |
| 243 | .map(({ typedSelection }) => typedSelection), |
| 244 | decorationTypes.sourceStyle |
| 245 | ), |
| 246 | displayPendingEditDecorations( |
| 247 | thatMark |
| 248 | .filter(({ isSource }) => !isSource) |
| 249 | .map(({ typedSelection }) => typedSelection), |
| 250 | decorationTypes.destinationStyle |
| 251 | ), |
| 252 | ]); |
| 253 | } |
| 254 | |
| 255 | private calculateMarks(markEntries: MarkEntry[]) { |
| 256 | // Only swap has sources as a "that" mark |
no test coverage detected