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
fix: defer onTypeFormatting to after running other hooks (#4842)
If other functions on post-self-insert-hook (e.g. smart-parens,
electric-indent) run after LSP's on-type-formatting, they may modify the
buffer and therefore cancel the async reques and prevent on-type-formatting
from working as expected.
This commit updates the hook to run in a timer (after 0 seconds), so it lets
all other functions perform their changes before asking the server for a
formatting action.
0 commit comments