Skip to content

Commit

Permalink
Added telemtry
Browse files Browse the repository at this point in the history
  • Loading branch information
madskristensen committed Feb 17, 2016
1 parent 5fa7417 commit 1cc1a6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/BrowserLink/ReloadExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ public override void OnDisconnecting(BrowserLinkConnection connection)
base.OnDisconnecting(connection);
}

public void Reload()
public void Reload(string extension)
{
Telemetry.TrackEvent("Saved ." + extension);
Browsers.Clients(_connections.ToArray()).Invoke("reload");
}

Expand All @@ -75,7 +76,7 @@ void FileChanged(object sender, FileSystemEventArgs e)

var watcher = (FileSystemWatcher)sender;
watcher.EnableRaisingEvents = false;
Reload();
Reload(ext);
watcher.EnableRaisingEvents = true;
}
}
Expand All @@ -85,6 +86,7 @@ void OptionsSaved(object sender, EventArgs e)
_extensions = VSPackage.Options.FileExtensions.Split(';');
_ignorePatterns = VSPackage.Options.GetIgnorePatterns();
Watcher.EnableRaisingEvents = VSPackage.Options.EnableReload;
Telemetry.TrackEvent("Updated settings");
}
}
}

0 comments on commit 1cc1a6a

Please sign in to comment.