```coffeescript
UIWatcher = require './ui-watcher'

module.exports =
  activate: (state) ->
    uiWatcher = new UIWatcher
      themeManager: atom.themes

    rootView.command 'dev-live-reload:reload-all', ->
      uiWatcher.reloadAll()

```

Create the UIWatcher after everything has been loaded
user
```coffeescript
$ = require 'jquery'
UIWatcher = require './ui-watcher'

module.exports =
  activate: (state) ->

    # HACK: I need an actvation event when the ui or packages are all loaded.
    # It cant watch all the packages until they are all loaded.
    createUIWatcher = ->
      uiWatcher = new UIWatcher
        themeManager: atom.themes
      $(window).off 'focus', createUIWatcher
    $(window).on 'focus', createUIWatcher

    rootView.command 'dev-live-reload:reload-all', ->
      uiWatcher.reloadAll()
```
assistant