Skip to content

Commit

Permalink
Limit the number of valid hole fits
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Jun 13, 2021
1 parent 7d7c2ef commit 31757fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ghcide/src/Development/IDE/GHC/Compat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ import Data.List (foldl')
import Data.List (foldl', isSuffixOf)
#endif

import Control.Applicative ((<|>))
import qualified Data.Map as M
import DynamicLoading
import Plugins (Plugin (parsedResultAction),
Expand Down Expand Up @@ -303,7 +304,7 @@ setUpTypedHoles df
$ df
{ refLevelHoleFits = Just 1 -- becomes slow at higher levels
, maxRefHoleFits = Just 10 -- quantity does not impact speed
, maxValidHoleFits = Nothing -- quantity does not impact speed
, maxValidHoleFits = maxValidHoleFits df <|> Just 10 -- quantity does not impact speed
}


Expand Down

0 comments on commit 31757fe

Please sign in to comment.