 
   doCheckOrLintBuffer: (cmd, buffer, fast) =>
     return Promise.resolve [] if buffer.isEmpty()
+    return Promise.resolve [] unless buffer.getUri()?
 
     # A dirty hack to make lint work with lhs
     olduri = uri = buffer.getUri()

        throw new Error "No type"

  doCaseSplit: (buffer, crange) =>
    crange = Util.tabShiftForRange(buffer, crange)
    @queueCmd 'typeinfo',
      interactive: @caps?.interactiveCaseSplit ? false

        {name, typeSignature, symbolType, parent}

  getTypeInBuffer: (buffer, crange) =>
    return Promise.resolve null unless buffer.getUri()?
    crange = Util.tabShiftForRange(buffer, crange)
    @queueCmd 'typeinfo',
      interactive: true
