emacs-typescript / typescript.el

TypeScript-support for Emacs
GNU General Public License v3.0
266 stars 80 forks source link

typescript-mode hangs if I enter a newline after a dot character. #146

Closed eguneys closed 2 years ago

eguneys commented 3 years ago

Cursor is on the dot, I press newline, emacs hangs. This happens often to me I kill emacs and restart it. I come to this situation to break long lines at function calls at dot character.

  situation('8/8/8/8/8/8/8/R3K2R w - - 0 1')!.actors

  let [long, short] = ;

You need to try harder, play with . and newline break for example this hangs:

laskjdf
  .jalksdf
  .aksdfl.
  .lkajsdf
.

This is my config: https://github.com/eguneys/dotfiles . Actually I am using typescript-mode which I installed from melpa. I don't use neither fly-check or fly-make, syntax just highlights out of the blue. I don't know what C-h v major-mode or C-h minor-mode does C-h is bound to delete-character to me.

Here's a describe-mode:

Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
Blink-Cursor Column-Number Electric-Indent File-Name-Shadow Font-Lock
Global-Eldoc Global-Font-Lock Line-Number Mouse-Wheel Tool-Bar Tooltip
Transient-Mark Whole-Line-Or-Region

Here's a describe-variable major-mode:

Its value is ‘typescript-mode’