Skip to content

introduce some soft limits around diff rendering #2596

Closed

Description

@shiftkey

The client apps have historically been indifferent to large diffs, whereas GitHub the Website is very rigid about some diffs - requiring users to opt-in to view them.

screen shot 2017-09-01 at 9 14 53 am

As discussed in #1686 (comment) - there may be some diff sizes and shapes that make the editor cry (ridiculously long lines with wrapping enabled seems to be what currently hurts Codemirror). Until we have time to revisit our choice of diff experience (post 1.0 at least), I'd love to get some feels from @desktop/core on warning users about large diffs to keep things snappy.

For sake of simplicity and not using it as crutch, I'd rather not make this configurable at all to the user - for diffs over a certain size, display a message first and require the user to click to see it.

Activity

  1. joshaber commented on Sep 1, 2017

    @joshaber
    Contributor

    👍 💯

    Large diffs like that are rarely meaningful too, so I doubt we're losing much.

  2. donokuda commented on Sep 1, 2017

    @donokuda
    Contributor

    I'm also 👍 with not rendering large diffs by default.

  3. benrondeau commented on Sep 22, 2017

    @benrondeau

    Any update on this issue?

  4. joshaber commented on Sep 22, 2017

    @joshaber
    Contributor

    @benrondeau Nothing yet, but this is the place to watch for updates!

  5. added
    codemirror
    on Oct 9, 2017
  6. RichardM99 commented on Oct 11, 2017

    @RichardM99

    +1

  7. added this to the 1.0.x milestone on Oct 11, 2017
  8. joshaber commented on Oct 11, 2017

    @joshaber
    Contributor

    Tentatively throwing this in 1.0.x.

  9. self-assigned this
    on Oct 12, 2017
  10. wes321 commented on Oct 27, 2017

    @wes321

    image
    Thank you 👍

  11. locked as resolved and limited conversation to collaborators on Jul 19, 2018
  12. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

codemirrorenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions