File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2727 Completion . prototype = {
2828 close : function ( ) {
2929 if ( ! this . active ( ) ) return ;
30+ this . cm . state . completionActive = null ;
3031
3132 if ( this . widget ) this . widget . close ( ) ;
3233 if ( this . onClose ) this . onClose ( ) ;
33- this . cm . state . completionActive = null ;
3434 CodeMirror . signal ( this . cm , "endCompletion" , this . cm ) ;
3535 } ,
3636
7676
7777 function update ( ) {
7878 if ( isDone ( ) ) return ;
79+ CodeMirror . signal ( data , "update" ) ;
7980 if ( completion . options . async )
8081 completion . getHints ( completion . cm , finishUpdate , completion . options ) ;
8182 else
8283 finishUpdate ( completion . getHints ( completion . cm , completion . options ) ) ;
8384 }
84- function finishUpdate ( data ) {
85+ function finishUpdate ( data_ ) {
86+ data = data_ ;
8587 if ( isDone ( ) ) return ;
8688 if ( ! data || ! data . list . length ) return done ( ) ;
8789 completion . widget . close ( ) ;
Original file line number Diff line number Diff line change 183183 var obj = { from : from , to : to , list : completions } ;
184184 var tooltip = null ;
185185 CodeMirror . on ( obj , "close" , function ( ) { remove ( tooltip ) ; } ) ;
186+ CodeMirror . on ( obj , "update" , function ( ) { remove ( tooltip ) ; } ) ;
186187 CodeMirror . on ( obj , "select" , function ( cur , node ) {
187188 remove ( tooltip ) ;
188189 var content = ts . options . completionTip ? ts . options . completionTip ( cur . data ) : cur . data . doc ;
You can’t perform that action at this time.
0 commit comments