feat:代码变更diff可视化功能实现

This commit is contained in:
Roe-xin
2026-03-02 10:00:04 +08:00
parent 3e18299099
commit 4c7ec65577
13 changed files with 1195 additions and 1 deletions

View File

@ -34,6 +34,11 @@ import {
getExampleShowcaseStyles,
getExampleShowcaseScript,
} from "./exampleShowcase";
import {
getChangePanelContent,
getChangePanelStyles,
getChangePanelScript,
} from "./changePanel";
import { sendIconSvg, stopIconSvg } from "../constants/toolIcons";
/**
@ -49,6 +54,8 @@ export function getInputAreaContent(
<div class="input-area centered" id="inputArea">
<div class="input-group">
<div class="input-wrapper">
<!-- 代码变更面板 -->
${getChangePanelContent()}
<!-- 顶部工具栏 -->
<div class="input-top-toolbar">
${getContextButtonContent()}
@ -94,6 +101,7 @@ export function getInputAreaStyles(): string {
${getContextCompressStyles()}
${getOptimizeButtonStyles()}
${getExampleShowcaseStyles()}
${getChangePanelStyles()}
.input-area {
border-top: 1px solid var(--vscode-panel-border);
padding-top: 15px;
@ -300,6 +308,7 @@ export function getInputAreaScript(): string {
${getContextButtonScript()}
${getContextCompressScript()}
${getOptimizeButtonScript()}
${getChangePanelScript()}
// 对话状态管理
let isConversationActive = false;