Skip to content

Commit

Permalink
Don't highlight JSON when over a meg
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Bourget committed Sep 10, 2024
1 parent 48011b5 commit 40d7c7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tui2/pages/output/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ func (o *Output) decodeDynamicMessage(msgDesc *manifest.ModuleDescriptor, anyin
}

func highlightJSON(in string) string {
if len(in) > 1_000_000 {
return in
}
out := &strings.Builder{}
profile := "friendly"
if lipgloss.HasDarkBackground() {
Expand Down

0 comments on commit 40d7c7e

Please sign in to comment.