Skip to content

Improve file path segment elision algorithm #1301

Description

@pkaminski

Reviewable currently decides whether to elide path segments if the longest file path is making the panel tab too wide, then elides all undistinguishing segments in every path if so. This is overly aggressive, since eliding segments of paths that are already shorter than the longest elided path won't make the tab any narrower. Ideally we'd be measuring the width of each individual path and elide segments only until it it's shorter than the longest fully elided path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions