Closed soulomoon closed 3 months ago
I'm not sure I see the attraction of this design, to be honest. I think we could instead see the tracking with files as a wrapper on top of the simpler progressCounter
that just works with the STM Int
s. That would mean we have two different types for the two different counters, rather than just one with a type parameter, but I think it would be simpler?
Good suggestions @michaelpj , I've managed to change it to the wrapper version, Seems much simpler using the wrapper version here.
Looks much better
follow up of https://github.com/haskell/haskell-language-server/pull/4205 This is intended to remove the useless
inProgress
when tracking theinProgressState
from the outside.data ProgressStateTrackingType = ProgressStateInsideTracking | ProgressStateOutsideTracking
to distinguish the two type ofinProgressState
tracking.TProgressState
to related type location to mark what kind of tracking we used. Then we won't haveinProgress
forProgressStateOutsideTracking