Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jan 7, 2019
1 parent 7a700fc commit 1e42598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -30,7 +30,7 @@ export class ApplicationDiagnostics implements IApplicationDiagnostics {
}));

// Validate the Mac interperter in the background.
const maccInterpreterService = this.serviceContainer.get<IDiagnosticsService>(InvalidMacPythonInterpreterServiceId);
const maccInterpreterService = this.serviceContainer.get<IDiagnosticsService>(IDiagnosticsService, InvalidMacPythonInterpreterServiceId);
maccInterpreterService.diagnose()
.then(diagnostics => maccInterpreterService.handle(diagnostics))
.ignoreErrors();
Expand Down
Expand Up @@ -39,7 +39,8 @@ suite('Application Diagnostics - ApplicationDiagnostics', () => {
.returns(() => outputChannel.object);
serviceContainer.setup(d => d.get(typemoq.It.isValue(ILogger)))
.returns(() => logger.object);
serviceContainer.setup(d => d.get(typemoq.It.isValue(InvalidMacPythonInterpreterServiceId)))
serviceContainer.setup(d => d.get(typemoq.It.isValue(IDiagnosticsService),
typemoq.It.isValue(InvalidMacPythonInterpreterServiceId)))
.returns(() => macInterperterCheck.object);

appDiagnostics = new ApplicationDiagnostics(serviceContainer.object, outputChannel.object);
Expand Down

0 comments on commit 1e42598

Please sign in to comment.