From 62e158cd43c9e745838300e16e0248607d8efc71 Mon Sep 17 00:00:00 2001 From: Mads Kristensen Date: Fri, 28 Apr 2017 09:31:12 -0700 Subject: [PATCH] Updated NotifyFilter to listen to filename changes /cc #6 --- src/BrowserLink/ReloadExtension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BrowserLink/ReloadExtension.cs b/src/BrowserLink/ReloadExtension.cs index 11718d2..c318a57 100644 --- a/src/BrowserLink/ReloadExtension.cs +++ b/src/BrowserLink/ReloadExtension.cs @@ -31,7 +31,7 @@ public ReloadExtension(Project project) _watcher = new FileSystemWatcher(folder); _watcher.Changed += FileChanged; _watcher.IncludeSubdirectories = true; - _watcher.NotifyFilter = NotifyFilters.Size | NotifyFilters.CreationTime; + _watcher.NotifyFilter = NotifyFilters.Size | NotifyFilters.CreationTime | NotifyFilters.FileName; _watcher.EnableRaisingEvents = VSPackage.Options.EnableReload; _timer = new Timer(TimerElapsed, null, 0, VSPackage.Options.Delay);