From f216365f15276a1780149633811816ddca48688a Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Mon, 16 Dec 2024 17:08:04 +0100 Subject: [PATCH] Fixes #235977 (#235982) --- .../browser/controller/inlineCompletionsController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.ts b/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.ts index 41499ed6f9f90..6be0ecd1c90fb 100644 --- a/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.ts +++ b/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.ts @@ -146,7 +146,7 @@ export class InlineCompletionsController extends Disposable { } const m = this.model.get(); if (!m) { return; } - if (m.inlineCompletionState.get()?.primaryGhostText) { + if (m.state.get()?.kind === 'ghostText') { this.model.get()?.stop(); } else if (m.state.get()?.inlineCompletion) { this.model.get()?.collapseInlineEdit();