File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/vs/editor/contrib/rename/browser Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -414,8 +414,12 @@ class CandidatesView {
414
414
private _lineHeight : number ;
415
415
private _availableHeight : number ;
416
416
417
+ private _disposables : DisposableStore ;
418
+
417
419
constructor ( parent : HTMLElement , opts : { fontInfo : FontInfo ; onSelectionChange : ( ) => void } ) {
418
420
421
+ this . _disposables = new DisposableStore ( ) ;
422
+
419
423
this . _availableHeight = 0 ;
420
424
421
425
this . _lineHeight = opts . fontInfo . lineHeight ;
@@ -466,11 +470,15 @@ class CandidatesView {
466
470
}
467
471
) ;
468
472
469
- this . _listWidget . onDidChangeSelection ( e => {
473
+ this . _disposables . add ( this . _listWidget . onDidChangeSelection ( e => {
470
474
if ( e . elements . length > 0 ) {
471
475
opts . onSelectionChange ( ) ;
472
476
}
473
- } ) ;
477
+ } ) ) ;
478
+
479
+ this . _disposables . add ( this . _listWidget . onDidBlur ( e => {
480
+ this . _listWidget . setFocus ( [ ] ) ;
481
+ } ) ) ;
474
482
475
483
this . _listWidget . style ( defaultListStyles ) ;
476
484
}
@@ -565,6 +573,7 @@ class CandidatesView {
565
573
566
574
dispose ( ) {
567
575
this . _listWidget . dispose ( ) ;
576
+ this . _disposables . dispose ( ) ;
568
577
}
569
578
}
570
579
You can’t perform that action at this time.
0 commit comments