This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Copy Support Still Running | ||
---|---|---|---|
Product: | php | Reporter: | Caffeine |
Component: | FTP Support | Assignee: | Tomas Mysik <tmysik> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Caffeine
2016-02-22 18:20:30 UTC
Well, currently there is no way (for external plugins) to detect whether CopySupport is running or not. Perhaps the best way could be to delay your code a bit (500 ms?). You can have a look at the RequestProcesor.Task.schedule() method which could help in this case (BTW this would have a nice benefit that if more files are quickly edited in a row, only one test run would be run). Thanks. Thanks Tomas, I tried this with a 1000 delay and when saving the same file in quick succession i actually got more than one copy support messages. I'll put RP back in and do some more testing. I could help with that, let me know if needed. Just add here your Github repo, I would create a PR. Thanks. RP.Task.schedule(1000) does help a lot. I'll update to use it for now, thanks for the help. I've spent a good few hours looking for different ways to get round this and RP seemed to be the "best" way for now. I'll mark this as resolved for now. Cheers! |