Make HTML and CSS code completion not to overwrite the neighboring text.
Refactor code as suggested in code review.
Merge pull request #3919 from adobe/rlim/code-hints-improvement

Make HTML and CSS code completion not to overwrite the neighboring text.