mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Reset @watchersByPath on atom.project.setPaths
This commit is contained in:
@@ -194,7 +194,9 @@ class Project extends Model
|
||||
repository?.destroy() for repository in @repositories
|
||||
@rootDirectories = []
|
||||
@repositories = []
|
||||
|
||||
watcher.dispose() for _, watcher in @watchersByPath
|
||||
@watchersByPath = {}
|
||||
|
||||
@addPath(projectPath, emitEvent: false) for projectPath in projectPaths
|
||||
|
||||
|
||||
Reference in New Issue
Block a user