src/vs/editor/contrib/inlineCompletions/suggestWidgetAdapterModel.ts/SuggestWidgetAdapterModel/setCurrentInlineCompletion
class SuggestWidgetAdapterModel:	private setCurrentInlineCompletion(completion: NormalizedInlineCompletion | undefined): void {
		const mode = this.editor.getOptions().get(EditorOption.suggest).previewMode;

		this.currentGhostText = completion
			? (
				inlineCompletionToGhostText(completion, this.editor.getModel(), mode) ||
				// Show an invisible ghost text to reserve space
				new GhostText(completion.range.endLineNumber, [], this.minReservedLineCount)
			) : undefined;

		if (this.currentGhostText && this.expanded) {
			this.minReservedLineCount = Math.max(this.minReservedLineCount, ...this.currentGhostText.parts.map(p => p.lines.length - 1));
		}

		const suggestController = SuggestController.get(this.editor);
		if (suggestController) {
			if (this.minReservedLineCount >= 1 && this.isSuggestionPreviewEnabled()) {
				suggestController.forceRenderingAbove();
			} else {
				suggestController.stopForceRenderingAbove();
			}
		}

		this.onDidChangeEmitter.fire();
	}