@@ -44,9 +44,6 @@ export class InlineCompletionsModel extends Disposable {
44
44
private _isAcceptingPartially = false ;
45
45
public get isAcceptingPartially ( ) { return this . _isAcceptingPartially ; }
46
46
47
- private _isNavigatingCurrentInlineCompletion = false ;
48
- public get isNavigatingCurrentInlineCompletion ( ) { return this . _isNavigatingCurrentInlineCompletion ; }
49
-
50
47
constructor (
51
48
public readonly textModel : ITextModel ,
52
49
public readonly selectedSuggestItem : IObservable < SuggestItemInfo | undefined > ,
@@ -251,17 +248,12 @@ export class InlineCompletionsModel extends Disposable {
251
248
private async _deltaSelectedInlineCompletionIndex ( delta : 1 | - 1 ) : Promise < void > {
252
249
await this . triggerExplicitly ( ) ;
253
250
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 ) ;
265
257
}
266
258
}
267
259
0 commit comments