Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add support for disabling the primary label line/col information #419

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Zij-IT
Copy link

@Zij-IT Zij-IT commented Jan 11, 2025

This is an attempt to tackle #91 by using the with_primary_span_start (default) and without_primary_span_start options.

This keeps the current behavior unchanged, but allows the user to turn off the line:col information displayed for a report whose primary span extends across multiple lines. A short example:

// This
  × decoding error
   ╭─[2:5]
 1 │ malformed
 2 │ h�XYZ
   ·   ┬
   ·   ╰── valid data here
   ╰────

// Becomes
  × decoding error
   ╭────
 1 │ malformed
 2 │ h�XYZ
   ·   ┬
   ·   ╰── valid data here
   ╰────

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant