@@ -9,15 +9,13 @@ import { ConfigSettingMonitor } from '../common/configSettingMonitor';
9
9
import { isTestExecution } from '../common/constants' ;
10
10
import { IFileSystem } from '../common/platform/types' ;
11
11
import { IConfigurationService } from '../common/types' ;
12
- import { IInterpreterService } from '../interpreter/contracts' ;
13
12
import { IServiceContainer } from '../ioc/types' ;
14
13
import { ILinterManager , ILintingEngine } from '../linters/types' ;
15
14
16
15
export class LinterProvider implements vscode . Disposable {
17
16
private context : vscode . ExtensionContext ;
18
17
private disposables : vscode . Disposable [ ] ;
19
18
private configMonitor : ConfigSettingMonitor ;
20
- private interpreterService : IInterpreterService ;
21
19
private documents : IDocumentManager ;
22
20
private configuration : IConfigurationService ;
23
21
private linterManager : ILinterManager ;
@@ -31,12 +29,9 @@ export class LinterProvider implements vscode.Disposable {
31
29
this . fs = serviceContainer . get < IFileSystem > ( IFileSystem ) ;
32
30
this . engine = serviceContainer . get < ILintingEngine > ( ILintingEngine ) ;
33
31
this . linterManager = serviceContainer . get < ILinterManager > ( ILinterManager ) ;
34
- this . interpreterService = serviceContainer . get < IInterpreterService > ( IInterpreterService ) ;
35
32
this . documents = serviceContainer . get < IDocumentManager > ( IDocumentManager ) ;
36
33
this . configuration = serviceContainer . get < IConfigurationService > ( IConfigurationService ) ;
37
34
38
- this . disposables . push ( this . interpreterService . onDidChangeInterpreter ( ( ) => this . engine . lintOpenPythonFiles ( ) ) ) ;
39
-
40
35
this . documents . onDidOpenTextDocument ( e => this . onDocumentOpened ( e ) , this . context . subscriptions ) ;
41
36
this . documents . onDidCloseTextDocument ( e => this . onDocumentClosed ( e ) , this . context . subscriptions ) ;
42
37
this . documents . onDidSaveTextDocument ( ( e ) => this . onDocumentSaved ( e ) , this . context . subscriptions ) ;
0 commit comments