       @messages.add informationView
 
     @model
-      .docsFor word
+      .load uri
+      .filter ({ responseType }) -> responseType == 'return'
+      .flatMap => @model.docsFor word
       .subscribe successHandler, @displayErrors
 
   getTypeForWord: ({ target }) =>


  getDocsForWord: ({ target }) =>
    word = Symbol.serializeWord @getWordUnderCursor(target)

    successHandler = ({ responseType, msg }) =>
      [type, highlightingInfo] = msg

      @messages.add informationView

    @model
      .load uri
      .filter ({ responseType }) -> responseType == 'return'
      .flatMap => @model.printDefinition word
      .subscribe successHandler, @displayErrors

  openREPL: ({ target }) =>
