File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed
packages/toolkit/src/shared/telemetry Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -105,23 +105,25 @@ type EnvType =
105
105
| 'other'
106
106
107
107
export function getComputeEnvType ( ) : EnvType {
108
- if ( isCloud9 ( 'classic' ) ) { return 'cloud9' }
109
-
110
- else if ( isCloud9 ( 'codecatalyst' ) ) { return 'cloud9-codecatalyst' }
111
-
112
- else if ( isInDevEnv ( ) ) { return 'codecatalyst' }
113
-
114
- else if ( isCn ( ) ) { return 'amazon-cloud9' }
115
-
116
- else if ( isSageMaker ( ) ) { return 'sagemaker' }
117
-
118
- else if ( env . remoteName === 'ssh-remote' && ! isInDevEnv ( ) ) { return 'ec2' }
119
-
120
- else if ( isAutomation ( ) ) { return 'test' }
121
-
122
- else if ( ! env . remoteName ) { return 'local' }
123
-
124
- else { return 'other' }
108
+ if ( isCloud9 ( 'classic' ) ) {
109
+ return 'cloud9'
110
+ } else if ( isCloud9 ( 'codecatalyst' ) ) {
111
+ return 'cloud9-codecatalyst'
112
+ } else if ( isInDevEnv ( ) ) {
113
+ return 'codecatalyst'
114
+ } else if ( isCn ( ) ) {
115
+ return 'amazon-cloud9'
116
+ } else if ( isSageMaker ( ) ) {
117
+ return 'sagemaker'
118
+ } else if ( env . remoteName === 'ssh-remote' && ! isInDevEnv ( ) ) {
119
+ return 'ec2'
120
+ } else if ( isAutomation ( ) ) {
121
+ return 'test'
122
+ } else if ( ! env . remoteName ) {
123
+ return 'local'
124
+ } else {
125
+ return 'other'
126
+ }
125
127
}
126
128
127
129
/**
You can’t perform that action at this time.
0 commit comments