Skip to content
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

Implement a delay for Update On Tab Change #8

Closed
jordanbtucker opened this issue Jul 16, 2014 · 5 comments
Closed

Implement a delay for Update On Tab Change #8

jordanbtucker opened this issue Jul 16, 2014 · 5 comments
Assignees

Comments

@jordanbtucker
Copy link

Enhancement request to implement a (configurable) delay for Update On Tab Change. I see too many compilation errors because I pause too long after typing an operator. Thanks.

@Glavin001
Copy link
Owner

Just published patch. Hopefully this will help diminishes those occurrences :). See https://github.com/Glavin001/atom-coffeescript-preview#package-settings for documentation on this new feature. Thanks!

@jordanbtucker
Copy link
Author

Hmm, this isn't quite working as expected. If I set a value of, say, 3000, I should be able to make a change in the editor, and nothing should happen in the preview pane for 3 seconds. After those three seconds, it should update the preview pane (unless, of course, I've made another change in the meantime).

Instead, if I make a change, after only about half a second, the preview pane shows the loading logo and continues to show that logo for 3 seconds before it finally refreshes its output. This gives the impression that it's taking 3 seconds just to render the code.

If I set a smaller value, even 0, I still get a flash of the logo while it's loading. I don't remember there being a flash before this patch. Maybe I'm just being picky, but I think this still has room for improvement. Thanks.

@Glavin001 Glavin001 reopened this Jul 17, 2014
@Glavin001
Copy link
Owner

How is it now?

@jordanbtucker
Copy link
Author

This is working perfectly now! Thanks!

@Glavin001
Copy link
Owner

You're very welcome. Enjoy :)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants