     if event is 'add'
       @latex.provider.subFiles.getFileItems(fpath)
     else if event is 'unlink'
-      @latex.provider.subFiles. resetFileItems(fpath) 
+      @latex.provider.subFiles. resetFileItems(fpath)
       @latex.provider.reference.resetRefItems(fpath)
     if @isTexFile(fpath)
       # Push command and references suggestions

      return @config?
    @lastCfgTime = Date.now()
    rootDir = @rootDir()
    for file in fs.readdirSync rootDir
      if file is '.latexcfg'
        try
          filePath = path.join rootDir, file
          fileContent = fs.readFileSync filePath, 'utf-8'
          @config = JSON.parse fileContent
          if @config.root?
            @config.root = path.resolve rootDir, @config.root
          return true
        catch err
    return false

  isTexFile: (name) ->


  watchRoot: ->
    root = @rootDir()
    return false if !root?
    if !@rootWatcher? or @prevWatcherClosed(@rootWatcher,root)
      @latex.logger.log.push {
        type: status
