Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Update watched file list when files are added or removed #1539

Merged
merged 1 commit into from
May 10, 2016

Conversation

xzyfer
Copy link
Contributor

@xzyfer xzyfer commented May 10, 2016

Currently we build the Sass import graph when the CLI watcher is
started. However the graph is not update updated when files are
added or deleted. The latest is a big deal but the former results
in new files not triggered rebuilds when they're changed. The only
way to currently resolve this is to restart the CLI watcher.

This patch rebuilds the Sass import graph when files are added or
deleted to the watch always works as expected.

Fixes #1538

@xzyfer xzyfer self-assigned this May 10, 2016
@xzyfer xzyfer added this to the next.patch milestone May 10, 2016
Currently we build the Sass import graph when the CLI watcher is
started. However the graph is not update updated when files are
added or deleted. The latest is a big deal but the former results
in new files not triggered rebuilds when they're changed. The only
way to currently resolve this is to restart the CLI watcher.

This patch rebuilds the Sass import graph when files are added or
deleted to the watch always works as expected.

Fixes sass#1538
@xzyfer
Copy link
Contributor Author

xzyfer commented May 10, 2016

AppVeyor failure is a false alarm.

@xzyfer
Copy link
Contributor Author

xzyfer commented May 10, 2016

Unfortunately we don't have watcher tests atm because they were flakey in CI. Gonna test it in production 🙊

@xzyfer xzyfer merged commit ad4c44c into sass:master May 10, 2016
@xzyfer xzyfer deleted the feat/watcher branch May 10, 2016 11:22
@xzyfer xzyfer modified the milestone: next.patch Sep 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI watcher's import graph is not updated when files are added or deleted
1 participant