Add new pref maxCodeHints

For #9529.
I confirmed this is a performance boost for Code Hints.
Need to add a `@param` for `maxResults`. I can see that it's not part of your PR, but can you also add one for `insertHintOnTab` too?