File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/vs/editor/contrib/inlineCompletions/browser/model Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ export class InlineCompletionsModel extends Disposable {
227
227
this . _onlyRequestInlineEditsSignal . trigger ( tx ) ;
228
228
}
229
229
this . _isActive . set ( true , tx ) ;
230
+ this . _inAcceptFlow . set ( true , tx ) ;
230
231
this . _forceUpdateExplicitlySignal . trigger ( tx ) ;
231
232
} ) ;
232
233
await this . _fetchInlineCompletionsPromise . get ( ) ;
@@ -480,6 +481,10 @@ export class InlineCompletionsModel extends Disposable {
480
481
} ) ;
481
482
482
483
private readonly _tabShouldIndent = derived ( this , reader => {
484
+ if ( this . _inAcceptFlow . read ( reader ) ) {
485
+ return false ;
486
+ }
487
+
483
488
function isMultiLine ( range : Range ) : boolean {
484
489
return range . startLineNumber !== range . endLineNumber ;
485
490
}
You can’t perform that action at this time.
0 commit comments