 # TODO: this code is awful, refactor
 
-{CompositeDisposable, Emitter} = require 'atom'
+{CompositeDisposable, Disposable, Emitter} = require 'atom'
 {debounce} = require 'underscore-plus'
 
 {client} = require '../connection'

    @subs.add atom.workspace.observeActivePaneItem (item) => @updateForItem item
    @subs.add client.onAttached => @updateForItem()
    @subs.add client.onDetached => @updateForItem()

    @activateView()

  deactivate: ->
    @subs.dispose()


  consumeStatusBar: (bar) ->
    @statusBar = bar
    disposable = @activateView()
    @updateView @_current
    disposable
