Skip to content

Commit 32ef020

Browse files
SydneyhSmithTylerLeonhardt
authored andcommitted
Add Distribution Channel for PS7 telemetry (#1158)
1 parent 81ba0c0 commit 32ef020

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public sealed class StartEditorServicesCommand : PSCmdlet
3838

3939
public StartEditorServicesCommand()
4040
{
41+
//Sets the distribution channel to "PSES" so starts can be distinguished in PS7+ telemetry
42+
Environment.SetEnvironmentVariable("POWERSHELL_DISTRIBUTION_CHANNEL", "PSES");
4143
_disposableResources = new List<IDisposable>();
4244
_loggerUnsubscribers = new List<IDisposable>();
4345
}

0 commit comments

Comments
 (0)