@@ -9,15 +9,13 @@ import { ConfigSettingMonitor } from '../common/configSettingMonitor';
99import { isTestExecution } from '../common/constants' ;
1010import { IFileSystem } from '../common/platform/types' ;
1111import { IConfigurationService } from '../common/types' ;
12- import { IInterpreterService } from '../interpreter/contracts' ;
1312import { IServiceContainer } from '../ioc/types' ;
1413import { ILinterManager , ILintingEngine } from '../linters/types' ;
1514
1615export class LinterProvider implements vscode . Disposable {
1716 private context : vscode . ExtensionContext ;
1817 private disposables : vscode . Disposable [ ] ;
1918 private configMonitor : ConfigSettingMonitor ;
20- private interpreterService : IInterpreterService ;
2119 private documents : IDocumentManager ;
2220 private configuration : IConfigurationService ;
2321 private linterManager : ILinterManager ;
@@ -31,12 +29,9 @@ export class LinterProvider implements vscode.Disposable {
3129 this . fs = serviceContainer . get < IFileSystem > ( IFileSystem ) ;
3230 this . engine = serviceContainer . get < ILintingEngine > ( ILintingEngine ) ;
3331 this . linterManager = serviceContainer . get < ILinterManager > ( ILinterManager ) ;
34- this . interpreterService = serviceContainer . get < IInterpreterService > ( IInterpreterService ) ;
3532 this . documents = serviceContainer . get < IDocumentManager > ( IDocumentManager ) ;
3633 this . configuration = serviceContainer . get < IConfigurationService > ( IConfigurationService ) ;
3734
38- this . disposables . push ( this . interpreterService . onDidChangeInterpreter ( ( ) => this . engine . lintOpenPythonFiles ( ) ) ) ;
39-
4035 this . documents . onDidOpenTextDocument ( e => this . onDocumentOpened ( e ) , this . context . subscriptions ) ;
4136 this . documents . onDidCloseTextDocument ( e => this . onDocumentClosed ( e ) , this . context . subscriptions ) ;
4237 this . documents . onDidSaveTextDocument ( ( e ) => this . onDocumentSaved ( e ) , this . context . subscriptions ) ;
0 commit comments