File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { IExtensionSingleActivationService } from '../activation/types';
11
11
import { IDocumentManager } from '../common/application/types' ;
12
12
import { isTestExecution } from '../common/constants' ;
13
13
import '../common/extensions' ;
14
+ import { IDisposableRegistry } from '../common/types' ;
14
15
import { noop } from '../common/utils/misc' ;
15
16
import { EventName } from './constants' ;
16
17
@@ -49,9 +50,12 @@ export class ImportTracker implements IExtensionSingleActivationService {
49
50
// tslint:disable-next-line:no-require-imports
50
51
private hashFn = require ( 'hash.js' ) . sha256 ;
51
52
52
- constructor ( @inject ( IDocumentManager ) private documentManager : IDocumentManager ) {
53
- this . documentManager . onDidOpenTextDocument ( ( t ) => this . onOpenedOrSavedDocument ( t ) ) ;
54
- this . documentManager . onDidSaveTextDocument ( ( t ) => this . onOpenedOrSavedDocument ( t ) ) ;
53
+ constructor (
54
+ @inject ( IDocumentManager ) private documentManager : IDocumentManager ,
55
+ @inject ( IDisposableRegistry ) private disposables : IDisposableRegistry
56
+ ) {
57
+ this . documentManager . onDidOpenTextDocument ( ( t ) => this . onOpenedOrSavedDocument ( t ) , this , this . disposables ) ;
58
+ this . documentManager . onDidSaveTextDocument ( ( t ) => this . onOpenedOrSavedDocument ( t ) , this , this . disposables ) ;
55
59
}
56
60
57
61
public dispose ( ) {
You can’t perform that action at this time.
0 commit comments