Skip to content

Commit 5e14ad1

Browse files
committed
Merge branch 'gajjardh/refactor-add-ComputeEnv-telemetry' of https://github.com/aws/aws-toolkit-vscode into gajjardh/refactor-add-ComputeEnv-telemetry
2 parents 3494da7 + a6c1bb9 commit 5e14ad1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shared/telemetry/util.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ export async function getUserAgent(
9292
return pairs.join(' ')
9393
}
9494

95-
// Although this is similair to getEnvType() in authUtil files, added new.
96-
// auth util can be upadate to get ComputeEnv
95+
type EnvType = 'classic' | 'codecatalyst' | ...
9796

98-
export function getComputeEnvType() {
97+
export function getComputeEnvType(): EnvType {
9998
// Compute ENV could be one of the following
10099
// "cloud9"|"cloud9-codecatalyst"|"cloud9-ec2"|"codecatalyst"|"ec2"|"local"|"sagemaker"|"ssh"|"test"|"web"|"wsl"|"other"|string;
101100

0 commit comments

Comments
 (0)