diff --git a/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.ts b/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.ts index b6feaca9daee6..33f71f8d77a72 100644 --- a/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.ts +++ b/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.ts @@ -235,7 +235,7 @@ export class InlineEditsView extends Disposable { return 'ghostText'; } - if (inner.every(m => newText.getValueOfRange(m.modifiedRange).trim() === '')) { + if (inner.every(m => newText.getValueOfRange(m.modifiedRange).trim() === '' && edit.originalText.getValueOfRange(m.originalRange).trim() !== '')) { return 'deletion'; }