 
     @initializePromise = @scanBufferForColors().then (results) =>
       @colorMarkers = @createColorMarkers(results)
+      @initialized = true
 
     @variablesAvailable()
     @initializePromise

    .then (results) =>
      @updateColorMarkers(results)
    .catch (reason) ->

  terminateRunningTask: -> @task?.terminate()


    @subscriptions.add @editor.onDidDestroy => @destroy()

    @subscriptions.add @editor.onDidChange =>
      @terminateRunningTask() if @initialized and @variableInitialized
      clearTimeout(@timeout) if @timeout?

    @subscriptions.add @editor.onDidStopChanging =>
