-
Notifications
You must be signed in to change notification settings - Fork 276
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
[API Improvement] Wait for Tree Style Tab shutdown #2128
Comments
I agree that TST should have something API to send message from TST to others on TST's shutdown. And your proposal looks really effective. Thank you for the idea! Hmm, however it looks odd a little. The message type Then, how about another way: |
@piroor I have tested Even if a |
@piroor I tested using
So a |
Thank you for detailed research! Then, your initial proposal looks the only one available method. I've implemented the API by faa22f6. |
@piroor Happy to help! |
@piroor I fixed some things in the rich example code for |
Short description
I have looked into ways that other extension could detect when Tree Style Tab is disabled. Currently the proposed way in the wiki is to use ping with
setInterval
.I have found another way that can be used to detect when Tree Style Tab is disabeld. If the response to a message is a promise that is only resolved when the extension is disabled then that message can be used to do something after Tree Style Tab is disabled.
Code somewhere in Tree Style Tab:
Code in an extension that wants to be notified when Tree Style Tab is disabled:
or simpler:
The text was updated successfully, but these errors were encountered: