You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until this gets fixed, here's another workaround which doesn't require patching the library:
(defunmy-custom-auto-fill ()
"Break the line and continue with comment if there's any."
(when (> (current-column) fill-column)
(c-indent-new-comment-line)))
(add-hook'typescript-mode-hook
(lambda ()
(setq-local auto-fill-function 'my-custom-auto-fill)))
To reproduce:
In
something.ts
, this exists:Pressing
M-j
begets:In #41 (sorry, not #42) , a reasonable suggestion is to rebind
M-j
toc-indent-new-comment-line
, but that requires this patch totypescript.el
:The text was updated successfully, but these errors were encountered: