I have a function that accepts a boolean, after typing the letter ‘t’ Webstorm comes up with a never ending list of possiblities. I've attached the screenshots.
Another suggestion, because this wouldn't help much. In the example Text, TextDecoderStream, TextEncoderStream, TextMetrics, TextTrackCueList, TextTrackList would all show up.
Seems something is wrong somewhere, I can't re-call giving so many wrong suggestions.
Does it still suggest all these items after enabling case sensitive completion? Also, do they appear on typing, or on opening the completion with Ctrl+Space?
Pl,ease make sure that Match case is enabled in Settings | Editor | General | Code Completion.
Another suggestion, because this wouldn't help much.
In the example Text, TextDecoderStream, TextEncoderStream, TextMetrics, TextTrackCueList, TextTrackList would all show up.
Seems something is wrong somewhere, I can't re-call giving so many wrong suggestions.
Does it still suggest all these items after enabling case sensitive completion? Also, do they appear on typing, or on opening the completion with Ctrl+Space?
Then it gives me this:
But it's an abnormal long list
I THOUGHT it was more “aware” of the suggestions.
After checking with Stackblitz, that IDE also gives the same results.
So I guess it must be a mistake on my end.
But still, in the first example, if the type is boolean it should not propose 1000 other things.
Anway, you can close this.
Seems I was not mistaken, there is another thread going on here:
https://youtrack.jetbrains.com/issue/WEB-69310/Generic-types-are-no-longer-suggested-autocompleted