@@ -44,9 +44,6 @@ export class InlineCompletionsModel extends Disposable {
4444 private _isAcceptingPartially = false ;
4545 public get isAcceptingPartially ( ) { return this . _isAcceptingPartially ; }
4646
47- private _isNavigatingCurrentInlineCompletion = false ;
48- public get isNavigatingCurrentInlineCompletion ( ) { return this . _isNavigatingCurrentInlineCompletion ; }
49-
5047 constructor (
5148 public readonly textModel : ITextModel ,
5249 public readonly selectedSuggestItem : IObservable < SuggestItemInfo | undefined > ,
@@ -251,17 +248,12 @@ export class InlineCompletionsModel extends Disposable {
251248 private async _deltaSelectedInlineCompletionIndex ( delta : 1 | - 1 ) : Promise < void > {
252249 await this . triggerExplicitly ( ) ;
253250
254- this . _isNavigatingCurrentInlineCompletion = true ;
255- try {
256- const completions = this . _filteredInlineCompletionItems . get ( ) || [ ] ;
257- if ( completions . length > 0 ) {
258- const newIdx = ( this . selectedInlineCompletionIndex . get ( ) + delta + completions . length ) % completions . length ;
259- this . _selectedInlineCompletionId . set ( completions [ newIdx ] . semanticId , undefined ) ;
260- } else {
261- this . _selectedInlineCompletionId . set ( undefined , undefined ) ;
262- }
263- } finally {
264- this . _isNavigatingCurrentInlineCompletion = false ;
251+ const completions = this . _filteredInlineCompletionItems . get ( ) || [ ] ;
252+ if ( completions . length > 0 ) {
253+ const newIdx = ( this . selectedInlineCompletionIndex . get ( ) + delta + completions . length ) % completions . length ;
254+ this . _selectedInlineCompletionId . set ( completions [ newIdx ] . semanticId , undefined ) ;
255+ } else {
256+ this . _selectedInlineCompletionId . set ( undefined , undefined ) ;
265257 }
266258 }
267259
0 commit comments