Update telemetry.ts
checking for undefined suffix, not just empty string
This commit is contained in:
Родитель
791832845d
Коммит
91aa923203
|
@ -65,7 +65,7 @@ export function activate(): void {
|
|||
if (packageInfo) {
|
||||
let targetPopulation: TargetPopulation;
|
||||
const userVersion: PackageVersion = new PackageVersion(packageInfo.version);
|
||||
if (userVersion.suffix === "main") {
|
||||
if (!userVersion.suffix) {
|
||||
targetPopulation = TargetPopulation.Public;
|
||||
} else if (userVersion.suffix === "insiders") {
|
||||
targetPopulation = TargetPopulation.Insiders;
|
||||
|
|
Загрузка…
Ссылка в новой задаче