           editor: target.getModel()
           detail: detail
           tooltip: (crange) =>
-            console.log @
             new Promise (resolve, reject) =>
-              @process.getInfoInBuffer target.getModel().getBuffer(), crange, ({range, info}) ->
+              @process.getInfoInBuffer target.getModel().getBuffer(), crange, ({range, info}) =>
                 if info?
                   resolve {range, text: info}
                 else


    upi.onShouldShowTooltip (editor, crange) =>
      new Promise (resolve, reject) =>
        @process.getTypeInBuffer editor.getBuffer(), crange, ({range, type}) ->
          if type?
            resolve {range, text: type}
          else
            reject()

    disposables.add @process.onBackendActive ->
      upi.setStatus status: 'progress'

      default: 5000
      minimum: 100

    onSaveCheck:
      type: "boolean"
      default: true
      description: "Check file on save"

    onSaveLint:
      type: "boolean"
      default: true
      description: "Lint file on save"

    onMouseHoverShow:
      type: 'string'
      default: 'Info, fallback to Type'
      enum: ['Nothing', 'Type', 'Info', 'Info, fallback to Type']

    useLinter:
      type: 'boolean'
      default: false
      description: 'Use Atom Linter service for check and lint
                    (requires restart)'

  activate: (state) ->
    @process = new GhcModiProcess

