From 730f4b9019197548f2e2f01f6a488d1aadf7368d Mon Sep 17 00:00:00 2001 From: zhf <1204297681@qq.com> Date: Mon, 24 Nov 2025 20:37:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81inlineaichatheightAI?= =?UTF-8?q?=E8=A1=8C=E5=86=85=E8=81=8A=E5=A4=A9=E6=A1=86=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ai-code/src/code-editor.controller.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/ai-code/src/code-editor.controller.ts b/packages/ai-code/src/code-editor.controller.ts index 9bb0c67c..333458e6 100644 --- a/packages/ai-code/src/code-editor.controller.ts +++ b/packages/ai-code/src/code-editor.controller.ts @@ -82,6 +82,13 @@ export class CodeEditorController extends EditorController { return this.editorParams.theme || 'vs-dark'; } + /** + * @description AI行内聊天框高度 + * @type {number} + * @memberof CodeEditorController + */ + inlineAiChatHeight?: number; + /** * 初始化 * @@ -91,6 +98,12 @@ export class CodeEditorController extends EditorController { */ protected async onInit(): Promise { await super.onInit(); + if (this.editorParams) { + const { inlineaichatheight } = this.editorParams; + if (inlineaichatheight) { + this.inlineAiChatHeight = Number(inlineaichatheight); + } + } const { appDEACModeId, appDataEntityId } = this.model; if (appDEACModeId) { this.deACMode = await getDeACMode( @@ -316,6 +329,7 @@ export class CodeEditorController extends EditorController { layoutInfo.overviewRuler.width, editorElement: this.getInLineAiEditorElement(), editorTheme: this.getInLineAiEditorTheme(), + height: this.inlineAiChatHeight, }; } -- Gitee