 
   getInfoInBuffer: (editor, crange) =>
     buffer = editor.getBuffer()
+    return Promise.resolve null unless buffer.getUri()?
     {symbol, range} = Util.getSymbolInRange(editor, crange)
 
     @queueCmd 'typeinfo',

        throw new Error "No type"

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


  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()
