haskell-language-server icon indicating copy to clipboard operation
haskell-language-server copied to clipboard

session-loader: Don't loop forever when we don't find a file in any multi component

Open wz1000 opened this issue 1 year ago • 2 comments

We add a check for if the current file is a target we know about, and emit a diagnostic if that is the case, refusing to load the file in.

This doesn't change the implicit adding of the current file as a target for a single component case, as we need the old behaviour to support bare GHC/Direct cradles where not all targets may be listed.

TODO: add test case

wz1000 avatar Feb 26 '24 09:02 wz1000

Is this related to https://github.com/haskell/haskell-language-server/issues/4046 ?

michaelpj avatar Feb 26 '24 10:02 michaelpj

Is this related to #4046 ?

I don't think so

wz1000 avatar Feb 26 '24 10:02 wz1000