File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/vs/editor/contrib/inlineCompletions/browser/model Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ export class InlineCompletionsModel extends Disposable {
282
282
let inlineEdit : InlineCompletionWithUpdatedRange | undefined = undefined ;
283
283
const visibleCompletions : InlineCompletionWithUpdatedRange [ ] = [ ] ;
284
284
for ( const completion of c . inlineCompletions ) {
285
- if ( ! completion . sourceInlineCompletion . isInlineEdit ) {
285
+ if ( ! ( completion . sourceInlineCompletion . isInlineEdit || completion . sourceInlineCompletion . showInlineEditMenu ) ) {
286
286
if ( completion . isVisible ( this . textModel , cursorPosition , reader ) ) {
287
287
visibleCompletions . push ( completion ) ;
288
288
}
Original file line number Diff line number Diff line change @@ -180,10 +180,10 @@ async function addRefAndCreateResult(
180
180
completions . addRef ( ) ;
181
181
lists . push ( completions ) ;
182
182
for ( const item of completions . inlineCompletions . items ) {
183
- if ( ! context . includeInlineEdits && item . isInlineEdit ) {
183
+ if ( ! context . includeInlineEdits && ( item . isInlineEdit || item . showInlineEditMenu ) ) {
184
184
continue ;
185
185
}
186
- if ( ! context . includeInlineCompletions && ! item . isInlineEdit ) {
186
+ if ( ! context . includeInlineCompletions && ! ( item . isInlineEdit || item . showInlineEditMenu ) ) {
187
187
continue ;
188
188
}
189
189
const inlineCompletionItem = InlineCompletionItem . from (
@@ -197,7 +197,7 @@ async function addRefAndCreateResult(
197
197
itemsByHash . set ( inlineCompletionItem . hash ( ) , inlineCompletionItem ) ;
198
198
199
199
// Stop after first visible inline completion
200
- if ( ! item . isInlineEdit && context . triggerKind === InlineCompletionTriggerKind . Automatic ) {
200
+ if ( ! ( item . isInlineEdit || item . showInlineEditMenu ) && context . triggerKind === InlineCompletionTriggerKind . Automatic ) {
201
201
const minifiedEdit = inlineCompletionItem . toSingleTextEdit ( ) . removeCommonPrefix ( new TextModelText ( model ) ) ;
202
202
if ( ! minifiedEdit . isEmpty ) {
203
203
shouldStop = true ;
You can’t perform that action at this time.
0 commit comments