Commit 71986f7
perf: remove redundant DiffParser.Parse in ChatMessageItem render
ShouldRenderDiffView already validates the content is a parseable
unified diff. The extra Parse + Count > 0 guard in the render body
was always true when _hasDiffOutput was set, making the else branch
(fallback <pre>) dead code. DiffView internally parses via
OnParametersSet, so the removed call was a wasted parse per render.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 765698a commit 71986f7
1 file changed
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
247 | 239 | | |
248 | 240 | | |
249 | 241 | | |
| |||
0 commit comments