Skip to content

Commit eba43de

Browse files
author
Kartik Raj
committed
Added some logging
1 parent c2c744e commit eba43de

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/client/api.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,27 @@ export function buildApi(
120120
}
121121
}
122122
};
123+
if (process.env.VSC_PYTHON_CI_TEST === '1') {
124+
// tslint:disable: no-console
125+
console.log('CI_TEST is set');
126+
} else {
127+
console.log('CI_TEST is not set');
128+
}
129+
130+
console.log('Setting serviceContainer for ya 1');
131+
if (serviceContainer) {
132+
console.log('SERVICECONTAINER IS DEFINED 1');
133+
}
134+
// tslint:disable:no-any
135+
(api as any).serviceContainer = serviceContainer;
136+
(api as any).serviceManager = serviceManager;
123137

124138
// In test environment return the DI Container.
125139
if (isTestExecution()) {
126-
// tslint:disable:no-any
140+
console.log('Setting serviceContainer for ya 2');
141+
if (serviceContainer) {
142+
console.log('SERVICECONTAINER IS DEFINED 2');
143+
}
127144
(api as any).serviceContainer = serviceContainer;
128145
(api as any).serviceManager = serviceManager;
129146
// tslint:enable:no-any

0 commit comments

Comments
 (0)