Skip to content

Strip code to the left and right in diagnostics for long lines #8

Closed
@phansch

Description

@phansch

Analog to rust-lang/rust#63402

My initial idea is to hook this up here, where we would call into some other place that does the margin calculation:

DisplaySourceLine::Content { text, .. } => Some(format!(" {}", text)),

But I guess we'll also have to update the range of DisplaySourceLine::Annotation, so maybe it should happen earlier?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions