refactor(linter): replace range with span in tsgolint diagnostics#15965
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #15965 will not alter performanceComparing Summary
Footnotes
|
d4747c6 to
ebb4c61
Compare
1cbc204 to
27513a4
Compare
Merge activity
|
27513a4 to
631a621
Compare
There was a problem hiding this comment.
Pull request overview
This PR refactors the internal diagnostic types (TsGoLintRuleDiagnostic and TsGoLintInternalDiagnostic) to use Span instead of Range for position tracking. The Range type remains in use for JSON deserialization from the external tsgolint tool, with conversions happening at the deserialization boundaries.
Key changes:
- Replace
range: Rangewithspan: Spanin diagnostic structs - Update conversion logic to map
RangetoSpanwhen deserializing - Simplify code that previously constructed
SpanfromRangefields
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
631a621 to
faf7040
Compare
faf7040 to
6f6e609
Compare

No description provided.