Compare commits

...

1 Commits

Author SHA1 Message Date
Kim Morrison
0e952ddb9b chore: use local instance in Lsp.Diagnostics 2024-08-14 14:49:42 +10:00

View File

@@ -113,8 +113,7 @@ structure DiagnosticWith (α : Type) where
def DiagnosticWith.fullRange (d : DiagnosticWith α) : Range :=
d.fullRange?.getD d.range
local instance [Ord α] : Ord (Array α) := Ord.arrayOrd
attribute [local instance] Ord.arrayOrd in
/-- Restriction of `DiagnosticWith` to properties that are displayed to users in the InfoView. -/
private structure DiagnosticWith.UserVisible (α : Type) where
range : Range