           {name, typeSignature, symbolType}
 
   getTypeInBuffer: (buffer, crange) =>
-    rootDir = @backend.getRootDir(buffer)
+    rootDir = @getRootDir(buffer)
 
     new Promise (resolve, reject) =>
       @queueCmd 'typeinfo',

  getInfoInBuffer: (buffer, crange) =>
    {symbol, range} = Util.getSymbolInRange(/[\w.']*/, buffer, crange)

    rootDir = @backend.getRootDir(buffer)

    new Promise (resolve, reject) =>
      @queueCmd 'typeinfo',


  doCheckOrLintBuffer: (cmd, buffer, fast) =>
    return Promise.resolve [] if buffer.isEmpty()
    rootDir = @getRootDir(buffer)
    new Promise (resolve, reject) =>
      @queueCmd 'checklint',
        interactive: fast
