         throw new Error "No type"
 
   doCaseSplit: (buffer, crange) =>
+    return Promise.resolve [] unless buffer.getUri()?
     crange = Util.tabShiftForRange(buffer, crange)
     @queueCmd 'typeinfo',
       interactive: @caps?.interactiveCaseSplit ? false

        {name, typeSignature, symbolType, parent}

  getTypeInBuffer: (buffer, crange) =>
    crange = Util.tabShiftForRange(buffer, crange)
    @queueCmd 'typeinfo',
      interactive: true


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

    @queueCmd 'typeinfo',
