Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 4e2c77c

Browse files
author
Steven Kirk
committed
Record VS version in usage model.
1 parent 6697363 commit 4e2c77c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/GitHub.App/Services/UsageTracker.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ IObservable<UsageModel> BuildUsageModel(bool weekly, bool monthly)
187187

188188
model.Lang = CultureInfo.InstalledUICulture.IetfLanguageTag;
189189
model.AppVersion = AssemblyVersionInformation.Version;
190+
model.VSVersion = GitHub.VisualStudio.Services.VisualStudioVersion;
190191

191192
var counters = new List<IObservable<int>>
192193
{

src/GitHub.Exports/Services/Services.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public static IVsOutputWindowPane OutputWindowPane
8383

8484
public static IVsUIShell UIShell => GetGlobalService<SVsUIShell, IVsUIShell>();
8585

86+
public static string VisualStudioVersion => Dte.Version;
87+
8688
public static IVsActivityLog GetActivityLog(this IServiceProvider provider)
8789
{
8890
return GetGlobalService<SVsActivityLog, IVsActivityLog>(provider);

0 commit comments

Comments
 (0)