File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export class SignatureHelpManager {
32
32
/**
33
33
* holds a reference to all disposable items for the current signature help
34
34
*/
35
- signatureHelpDisposables : CompositeDisposable | null = null
35
+ signatureHelpDisposables : CompositeDisposable = new CompositeDisposable ( )
36
36
/**
37
37
* config flag denoting if the signature help should be shown during typing automatically
38
38
*/
@@ -76,10 +76,7 @@ export class SignatureHelpManager {
76
76
* dispose function to clean up any disposable references used
77
77
*/
78
78
dispose ( ) {
79
- if ( this . signatureHelpDisposables ) {
80
- this . signatureHelpDisposables . dispose ( )
81
- }
82
- this . signatureHelpDisposables = null
79
+ this . signatureHelpDisposables . dispose ( )
83
80
84
81
if ( this . editorSubscriptions ) {
85
82
this . editorSubscriptions . dispose ( )
@@ -331,9 +328,6 @@ export class SignatureHelpManager {
331
328
* unmounts / hides the most recent data tip view component
332
329
*/
333
330
unmountDataTip ( ) {
334
- if ( this . signatureHelpDisposables ) {
335
- this . signatureHelpDisposables . dispose ( )
336
- }
337
- this . signatureHelpDisposables = null
331
+ this . signatureHelpDisposables . dispose ( )
338
332
}
339
333
}
You can’t perform that action at this time.
0 commit comments