Skip to content

Commit 8e0e645

Browse files
authored
Register linter commands (microsoft#653)
* register linter commands * do not wait to validate python installation
1 parent 9bd1e02 commit 8e0e645

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/client/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { ServiceManager } from './ioc/serviceManager';
3434
import { IServiceContainer } from './ioc/types';
3535
import { JupyterProvider } from './jupyter/provider';
3636
import { JediFactory } from './languageServices/jediProxyFactory';
37+
import { LinterCommands } from './linters/linterCommands';
3738
import { registerTypes as lintersRegisterTypes } from './linters/serviceRegistry';
3839
import { PythonCompletionItemProvider } from './providers/completionProvider';
3940
import { PythonDefinitionProvider } from './providers/definitionProvider';
@@ -102,7 +103,8 @@ export async function activate(context: vscode.ExtensionContext) {
102103
const interpreterManager = serviceContainer.get<IInterpreterService>(IInterpreterService);
103104

104105
const pythonInstaller = new PythonInstaller(serviceContainer);
105-
await pythonInstaller.checkPythonInstallation(PythonSettings.getInstance());
106+
pythonInstaller.checkPythonInstallation(PythonSettings.getInstance())
107+
.catch(ex => console.error('Python Extension: pythonInstaller.checkPythonInstallation', ex));
106108

107109
// This must be completed before we can continue.
108110
await interpreterManager.autoSetInterpreter();
@@ -120,6 +122,7 @@ export async function activate(context: vscode.ExtensionContext) {
120122

121123
context.subscriptions.push(new ReplProvider(serviceContainer));
122124
context.subscriptions.push(new TerminalProvider(serviceContainer));
125+
context.subscriptions.push(new LinterCommands(serviceContainer));
123126

124127
// Enable indentAction
125128
// tslint:disable-next-line:no-non-null-assertion

0 commit comments

Comments
 (0)