File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,14 @@ import { CompositeDisposable } from "atom"
2
2
import { SignatureHelpManager } from "./signature-help-manager"
3
3
import { SignatureHelpRegistry } from "atom-ide-base"
4
4
5
- let subscriptions : CompositeDisposable
5
+ let subscriptions = new CompositeDisposable ( )
6
6
let signatureHelpManager : SignatureHelpManager
7
7
8
8
/**
9
9
* called by Atom when activating an extension
10
10
*/
11
11
export function activate ( ) {
12
12
// Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable
13
- subscriptions = new CompositeDisposable ( )
14
13
signatureHelpManager = new SignatureHelpManager ( )
15
14
subscriptions . add ( signatureHelpManager )
16
15
; ( require ( "atom-package-deps" ) as typeof import ( "atom-package-deps" ) )
@@ -24,9 +23,7 @@ export function activate() {
24
23
* called by Atom when deactivating an extension
25
24
*/
26
25
export function deactivate ( ) {
27
- if ( subscriptions ) {
28
- subscriptions . dispose ( )
29
- }
26
+ subscriptions . dispose ( )
30
27
}
31
28
32
29
export function provideSignatureHelp ( ) : SignatureHelpRegistry {
You can’t perform that action at this time.
0 commit comments