File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
1
// Copyright (c) Microsoft Corporation. All rights reserved.
3
2
// Licensed under the MIT License.
4
3
5
4
import { Uri , Event } from 'vscode' ;
6
- import { ProposedExtensionAPI , Resource } from './proposedApiTypes' ;
5
+ import { Resource } from './proposedApiTypes' ;
7
6
import { PythonEnvKind , EnvPathType } from './pythonEnvironments/base/info' ;
8
7
import { ProgressNotificationEvent , GetRefreshEnvironmentsOptions } from './pythonEnvironments/base/locator' ;
9
8
Original file line number Diff line number Diff line change @@ -182,7 +182,6 @@ export function buildProposedApi(
182
182
return onDidActiveInterpreterChangedEvent . event ;
183
183
} ,
184
184
resolveEnvironment : async ( env : Environment | EnvironmentId | string ) => {
185
- sendApiTelemetry ( 'resolveEnvironment' ) ;
186
185
let path = typeof env !== 'string' ? env . path : env ;
187
186
if ( pathUtils . basename ( path ) === path ) {
188
187
// Value can be `python`, `python3`, `python3.9` etc.
@@ -201,17 +200,18 @@ export function buildProposedApi(
201
200
}
202
201
path = fullyQualifiedPath ;
203
202
}
203
+ sendApiTelemetry ( 'resolveEnvironment' ) ;
204
204
return resolveEnvironment ( path , discoveryApi ) ;
205
205
} ,
206
206
get all ( ) : Environment [ ] {
207
207
sendApiTelemetry ( 'all' ) ;
208
208
return discoveryApi . getEnvs ( ) . map ( ( e ) => convertEnvInfoAndGetReference ( e ) ) ;
209
209
} ,
210
210
async refreshEnvironments ( options ?: RefreshOptions ) {
211
- sendApiTelemetry ( 'refreshEnvironments' ) ;
212
211
await discoveryApi . triggerRefresh ( undefined , {
213
212
ifNotTriggerredAlready : ! options ?. forceRefresh ,
214
213
} ) ;
214
+ sendApiTelemetry ( 'refreshEnvironments' ) ;
215
215
} ,
216
216
get onDidChangeEnvironments ( ) {
217
217
sendApiTelemetry ( 'onDidChangeEnvironments' ) ;
You can’t perform that action at this time.
0 commit comments