haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.61k stars 351 forks source link

Consider migrate the cache system to hls-graph #4240

Open soulomoon opened 1 month ago

soulomoon commented 1 month ago

Instead of scattering the cache system between hls-graph and ghcide. There might be a better idea, we can migrate the cache system to hls-graph. Since the scattering leads to some hard debugging bugs like https://github.com/haskell/haskell-language-server/pull/4185 https://github.com/haskell/haskell-language-server/issues/4093, although they've been solved.

But it is hard, It would require us to make a very good abstract of the current handling logic. And reimplement the following in hls-graph:

But we can take steps to do it too.