microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

bad behavior when comment with chinese input method opened #555

Closed fwang2002 closed 7 years ago

fwang2002 commented 8 years ago

The behavior of the following two scenarios are different, both with chinese input method open:

  1. comment at a empty line, with //
  2. comment at the end of a line of characters, with //

The first scenario is wrong when input some characters and hit 'Enter' to accept it as English input. It will put nothing to the editor but with a real line break. The second scenario is right. And it's right when using /* */ to comment.

fwang2002 commented 7 years ago

doesn't happen any more.