ananthakumaran / tide

Tide - TypeScript Interactive Development Environment for Emacs
GNU General Public License v3.0
1.46k stars 109 forks source link

Fix tide-rename-file bug on new buffer name; #409

Closed Sleepful closed 3 years ago

Sleepful commented 3 years ago

fixes #408: If the new name of a buffer clashes with an opened buffer then tide-rename-file stops and doesn't apply after-rename-edits. Especially problematic because tide leaves buffers open as it applies code edits.

ananthakumaran commented 3 years ago

Thanks for debugging the issue. I have uniquify buffer enabled, which seem to do this automatically, because I never ran into the problem while testing.

(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)