File tree Expand file tree Collapse file tree
code/extensions/che-api/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,22 +45,18 @@ export async function activate(_extensionContext: vscode.ExtensionContext): Prom
4545 container . bind ( TelemetryService ) . to ( K8sTelemetryServiceImpl ) . inSingletonScope ( ) ;
4646 container . bind ( Logger ) . toSelf ( ) . inSingletonScope ( ) ;
4747
48- const devfileService = container . get ( DevfileService ) as DevfileService ;
49- const workspaceService = container . get ( WorkspaceService ) as WorkspaceService ;
50- const githubService = container . get ( GithubService ) as GithubService ;
51- const telemetryService = container . get ( TelemetryService ) as TelemetryService ;
5248 const api : Api = {
5349 getDevfileService ( ) : DevfileService {
54- return devfileService ;
50+ return container . get ( DevfileService ) as DevfileService ;
5551 } ,
5652 getWorkspaceService ( ) : WorkspaceService {
57- return workspaceService ;
53+ return container . get ( WorkspaceService ) as WorkspaceService ;
5854 } ,
5955 getGithubService ( ) : GithubService {
60- return githubService ;
56+ return container . get ( GithubService ) as GithubService ;
6157 } ,
6258 getTelemetryService ( ) : TelemetryService {
63- return telemetryService ;
59+ return container . get ( TelemetryService ) as TelemetryService ;
6460 } ,
6561 } ;
6662
You can’t perform that action at this time.
0 commit comments