Performance tweak adjusting CodeMiror API usage to how it's implemented in CodeMirror.
Making TypeScriptCodeHintProvider use the actual cursor position instead of bogus '2' offset.