@@ -8,7 +8,6 @@ import { cloneDeep } from 'lodash';
8
8
import {
9
9
IConfigurationService ,
10
10
IDisposableRegistry ,
11
- IExtensions ,
12
11
IInterpreterPathService ,
13
12
IPythonSettings ,
14
13
} from '../client/common/types' ;
@@ -39,7 +38,6 @@ suite('Proposed Extension API', () => {
39
38
let discoverAPI : typemoq . IMock < IDiscoveryAPI > ;
40
39
let interpreterPathService : typemoq . IMock < IInterpreterPathService > ;
41
40
let configService : typemoq . IMock < IConfigurationService > ;
42
- let extensions : typemoq . IMock < IExtensions > ;
43
41
let onDidChangeRefreshState : EventEmitter < ProgressNotificationEvent > ;
44
42
let onDidChangeEnvironments : EventEmitter < PythonEnvCollectionChangedEvent > ;
45
43
@@ -48,17 +46,11 @@ suite('Proposed Extension API', () => {
48
46
setup ( ( ) => {
49
47
serviceContainer = typemoq . Mock . ofType < IServiceContainer > ( ) ;
50
48
discoverAPI = typemoq . Mock . ofType < IDiscoveryAPI > ( ) ;
51
- extensions = typemoq . Mock . ofType < IExtensions > ( ) ;
52
- extensions
53
- . setup ( ( e ) => e . determineExtensionFromCallStack ( ) )
54
- . returns ( ( ) => Promise . resolve ( { extensionId : 'id' , displayName : 'displayName' , apiName : 'apiName' } ) )
55
- . verifiable ( typemoq . Times . atLeastOnce ( ) ) ;
56
49
interpreterPathService = typemoq . Mock . ofType < IInterpreterPathService > ( ) ;
57
50
configService = typemoq . Mock . ofType < IConfigurationService > ( ) ;
58
51
onDidChangeRefreshState = new EventEmitter ( ) ;
59
52
onDidChangeEnvironments = new EventEmitter ( ) ;
60
53
61
- serviceContainer . setup ( ( s ) => s . get ( IExtensions ) ) . returns ( ( ) => extensions . object ) ;
62
54
serviceContainer . setup ( ( s ) => s . get ( IInterpreterPathService ) ) . returns ( ( ) => interpreterPathService . object ) ;
63
55
serviceContainer . setup ( ( s ) => s . get ( IConfigurationService ) ) . returns ( ( ) => configService . object ) ;
64
56
serviceContainer . setup ( ( s ) => s . get ( IDisposableRegistry ) ) . returns ( ( ) => [ ] ) ;
@@ -69,11 +61,6 @@ suite('Proposed Extension API', () => {
69
61
proposed = buildProposedApi ( discoverAPI . object , serviceContainer . object ) ;
70
62
} ) ;
71
63
72
- teardown ( ( ) => {
73
- // Verify each API method sends telemetry regarding who called the API.
74
- extensions . verifyAll ( ) ;
75
- } ) ;
76
-
77
64
test ( 'Provide an event to track when active environment details change' , async ( ) => {
78
65
const events : ActiveEnvironmentPathChangeEvent [ ] = [ ] ;
79
66
proposed . environment . onDidChangeActiveEnvironmentPath ( ( e ) => {
0 commit comments