Skip to content

Commit

Permalink
Mitigate dotnet#6044 and don't call suggestions for small identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Dec 21, 2018
1 parent 0302e63 commit ccdeb58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fsharp/ErrorResolutionHints.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ let IsInEditDistanceProximity idText suggestion =
editDistance <= threshold

/// Filters predictions based on edit distance to the given unknown identifier.
let FilterPredictions (idText:string) (suggestionF:ErrorLogger.Suggestions) =
let FilterPredictions (idText:string) (suggestionF:ErrorLogger.Suggestions) =
if idText.Length < 5 then [] else // we should not try to suggest all the time when people are typing
let uppercaseText = idText.ToUpperInvariant()
let allSuggestions = suggestionF()

Expand Down

0 comments on commit ccdeb58

Please sign in to comment.