-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revert filetype detect, save localoptions #180
Conversation
I'd call this a breaking change, took me some time figuring out why my session switching was breaking. @rmagatti Perhaps you could create a pinned issue with breaking changes like these? - For easy subscription. |
I can create that issue for sure! I'm still unclear on what was breaking from this change as merely the defer function was removed that didn't actually even exist before if I'm not mistaken. Either way a breaking change issue is a great idea, thanks! |
@MikaelElkiaer here it is: |
There might be more to it then than just this. My syntax highlighting was gone whenever I would restore a session, until after adding the |
@MikaelElkiaer Sorry this gave you so much trouble, but I would not classify this as a breaking change. Aside from the race condition bugs this could cause, it also introduced a scenario where if the session restoration caused the directory to change, this would cause a new session restoration, which could cause the directory to change again, ad infinitum. The syntax highlighting is a lower priority than the infinitely recursive directory changes. That being said, I do think we could make it easier to figure out than combing through issues/PRs. It might be nice to add the I could also just add this change back in, because it would not hurt anything other than slightly decreasing performance, but it might provide a better UX for some users. |
@zwhitchcox I am not trying to make a big thing out of this. I am just saying this: ugly hack or not, once that was removed, highlights did not work immediately after session load. I don't think you should re-add it, but perhaps it ought to be mentioned in #186 (I guess I just did), in case others stumble upon it. Great work on the |
The readme does recommend adding |
How about we just say if more people comments on this saying that it gave them trouble we can add more documentation, but otherwise count this as documentation |
See #179 (comment)
Save local options which will restore syntax highlighting, as well as
wrap
andnumber
options