SublimeLinter/SublimeLinter — pull request #309 by dskinner (2012-12-09 04:53:29+00:00)
Title: Broadcast lint data to other plugins

I'm developing a sublime plugin to allow better plugin-to-plugin handling.

https://github.com/dskinner/PackageMeta

One of the parts of this is lettings a plugin broadcast data across a given channel where another plugin can receive and act on it. For a particular use case, I'm looking at an auto-import-all feature for SublimeJava, https://github.com/quarnster/SublimeJava, that simply gathers missing symbols from SublimeLinter instead of reproducing functionality already taking place.

The package handles other things like providing a window command a plugin can use to automatically install dependencies for extra functionality.

Communication is done via a run_command which means that SublimeLinter can start broadcasting data with no concern for the package I linked actually being available.

From then on, future packages would be able to receive broadcast data they request to listen for. In the case of SublimeJava, the package would simply listen for broadcast data on channel "lint_java" and act on it.

Thanks