     atom.commands.add 'atom-workspace', 'dart-tools:toggle-analysis-view'
 
   deactivate: ->
+    @subscriptions.dispose()
     @analysisComponent.disable()
     @analysisDecorator.dispose()
     @quickInfoView.dispose()

  # TODO: becoming massive, refactor.
  activate: (state) ->
    return unless Utils.isDartProject()

    AnalysisComponent = require './analysis_component'
    Formatter = require './formatter'

{CompositeDisposable} = require 'atom'
Utils = require './utils'
AutoCompletePlusProvider = require './autocomplete/provider'

