Skip to content

Commit a5aa9ef

Browse files
test
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent f1b7cfd commit a5aa9ef

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

code/extensions/che-api/src/extension.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)