Closed aaronjensen closed 4 years ago
Okay, unraveled the mystery a bit. The problem is that global-auto-rename-tag-mode
is too global for me. It applies to hidden buffers used for communicating with processes (like forge and tide are doing) so those are the ones slowing things down. If I disable that and only enable auto-rename-tag-mode
on the buffer I'm working on, it's much more usable.
Sorry for the late reply!
I wasn't very sure why I design this package with global use case. I think the best use is to just have it enable in certain mode! For instance, web-mode
, rjsx-mode
, etc.
Hope this helps! :)
Makes sense, thanks!
I just tried it out again and ran into a few other issues. Feel free to open separate issues for them if you like.
div
in this code made changes to the wrong place:
- flycheck via lsp-mode doesn't appear to detect the changes to the closing tag, so it shows an error even when there isn't one (this is possibly a bug in flycheck or lsp-mode...)
Yeah, I am not quite sure the error here. Even there are error, I don't think this package should change anything to match either lsp
or flycheck
. But I have opened another issue just to make sure if anything pop out from anyone!
The issue is here #9
- Changing the first
div
in this code made changes to the wrong place:code
Resolved, see #8
Removed global from this commit b271596740cf5d59b7aaf4958a8c7756004c9723. global
version of this package doesn't exists anymore so it don't cause confusions! Close this issue! :)
Hi there, awesome package. I really like the similar VS Code package whenever I find myself using VS Code.
Unfortunately for me, this mode appears to add significant latency to every change command. To make matters worse, there seems to be something it does that angers tide-mode and causes tide-mode to continually run
tide-net-filter
which in turn triggers theauto-rename-tag-before-change-functions
. The end result is that when I make a change to a tag withtide-mode
enabled, Emacs more or less becomes unusable.Here's an example profile:
With tide mode disabled, it's usable, but still chugs as I make changes with a more confusing profile:
So, I think there are two issues--the before-change hook is firing in places I wouldn't necessarily expect, and when it does fire, it is slow. Would a
looking-back
based implementation be faster?Thanks again for making this and releasing it.