diff --git a/src/less-compile-cache.coffee b/src/less-compile-cache.coffee index 16b3d5894..6bf2d8c45 100644 --- a/src/less-compile-cache.coffee +++ b/src/less-compile-cache.coffee @@ -30,10 +30,9 @@ class LessCompileCache # from our backend FileListCache. setImportPaths: (importPaths=[]) -> fileCache = NylasEnv.fileListCache() - fileCacheImportPaths ?= fileCache.lessCacheImportPaths ? [] + fileCacheImportPaths = fileCache.lessCacheImportPaths ? [] fullImportPaths = importPaths.concat(@lessSearchPaths) - pathDiff = _.difference(fullImportPaths, fileCacheImportPaths) - if pathDiff.length isnt 0 + if not _.isEqual(fullImportPaths, fileCacheImportPaths) @cache.setImportPaths(fullImportPaths) fileCache.lessCacheImportPaths = fullImportPaths