Hiding code completion for query input behind user preference