@@ -361,7 +361,6 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
361361 private isAuto : boolean ;
362362 private loadingTimeout : number ;
363363 private currentSuggestionDetails : TPromise < void > ;
364- private focusedItemIndex : number ;
365364 private focusedItem : ICompletionItem ;
366365 private ignoreFocusEvents = false ;
367366 private completionModel : CompletionModel ;
@@ -591,28 +590,12 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
591590
592591 this . suggestionSupportsAutoAccept . set ( ! item . suggestion . noAutoAccept ) ;
593592
594- const oldFocus = this . focusedItem ;
595- const oldFocusIndex = this . focusedItemIndex ;
596- this . focusedItemIndex = index ;
597593 this . focusedItem = item ;
598594
599- if ( oldFocus ) {
600- this . ignoreFocusEvents = true ;
601- this . list . splice ( oldFocusIndex , 1 , [ oldFocus ] ) ;
602- this . ignoreFocusEvents = false ;
603- }
604-
605595 this . list . reveal ( index ) ;
606596
607597 this . currentSuggestionDetails = item . resolve ( )
608598 . then ( ( ) => {
609- this . ignoreFocusEvents = true ;
610- this . list . splice ( index , 1 , [ item ] ) ;
611- this . ignoreFocusEvents = false ;
612-
613- this . list . setFocus ( [ index ] ) ;
614- this . list . reveal ( index ) ;
615-
616599 if ( this . expandDocsSettingFromStorage ( ) ) {
617600 this . showDetails ( ) ;
618601 } else {
@@ -738,7 +721,6 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
738721 this . telemetryService . publicLog ( 'suggestWidget' , { ...stats , ...this . editor . getTelemetryData ( ) } ) ;
739722
740723 this . focusedItem = null ;
741- this . focusedItemIndex = null ;
742724 this . list . splice ( 0 , this . list . length , this . completionModel . items ) ;
743725
744726 if ( isFrozen ) {
0 commit comments