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

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

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

    atom.commands.add 'atom-workspace', 'dart-tools:toggle-analysis-view'

  deactivate: ->
    @subscriptions.dispose()
    @analysisComponent.disable()
    @analysisDecorator.dispose()
    @quickInfoView.dispose()
