diff --git a/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts b/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts index b528b21b2a6..0099df4fb2b 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts @@ -103,6 +103,7 @@ import { PreventDefaultContextMenuItemsContextKeyName } from '../../webview/brow import { NotebookAccessibilityProvider } from './notebookAccessibilityProvider.js'; import { NotebookHorizontalTracker } from './viewParts/notebookHorizontalTracker.js'; import { NotebookCellEditorPool } from './view/notebookCellEditorPool.js'; +import { InlineCompletionsController } from '../../../../editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js'; const $ = DOM.$; @@ -2040,6 +2041,13 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD CopyPasteController.get(editor)?.clearWidgets(); } }); + + this._renderedEditors.forEach((editor, cell) => { + const controller = InlineCompletionsController.get(editor); + if (controller?.model.get()?.inlineEditState.get()) { + editor.render(true); + } + }); } private editorHasDomFocus(): boolean {