Merge branch 'feat/DeleteConfirmation' into feat/codeToChat
This commit is contained in:
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
所有重要的项目变更都将记录在此文件中。
|
所有重要的项目变更都将记录在此文件中。
|
||||||
|
|
||||||
|
## [1.0.12] - 2026-03-06
|
||||||
|
|
||||||
|
### 新增
|
||||||
|
|
||||||
|
- 支持 AskUserQuestion 多问题和多选功能
|
||||||
|
|
||||||
## [1.0.9] - 2026-03-04
|
## [1.0.9] - 2026-03-04
|
||||||
|
|
||||||
### 优化
|
### 优化
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "iccoder",
|
"name": "iccoder",
|
||||||
"displayName": "IC Coder: Agentic Verilog Platform",
|
"displayName": "IC Coder: Agentic Verilog Platform",
|
||||||
"description": "Agentic Verilog Coding Platform for Real-World FPGAs",
|
"description": "Agentic Verilog Coding Platform for Real-World FPGAs",
|
||||||
"version": "1.0.11",
|
"version": "1.0.12",
|
||||||
"publisher": "ICCoderAgenticVerilogPlatform",
|
"publisher": "ICCoderAgenticVerilogPlatform",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.80.0"
|
"vscode": "^1.80.0"
|
||||||
|
|||||||
@ -1211,7 +1211,7 @@ export function getMessageAreaScript(): string {
|
|||||||
|
|
||||||
const optionsHtml = q.options.map(opt => {
|
const optionsHtml = q.options.map(opt => {
|
||||||
const isSelected = selectedAnswers.includes(opt);
|
const isSelected = selectedAnswers.includes(opt);
|
||||||
return \`<label style="display:flex;align-items:center;gap:6px;cursor:pointer;padding:4px 0;">
|
return \`<label class="question-option\${isSelected ? ' selected' : ''}" style="display:flex;align-items:center;gap:6px;cursor:pointer;padding:4px 0;">
|
||||||
<input type="\${inputType}" name="\${inputName}" value="\${opt}" \${isSelected ? 'checked' : ''} \${isAnswered ? 'disabled' : ''}>
|
<input type="\${inputType}" name="\${inputName}" value="\${opt}" \${isSelected ? 'checked' : ''} \${isAnswered ? 'disabled' : ''}>
|
||||||
<span>\${opt}</span>
|
<span>\${opt}</span>
|
||||||
</label>\`;
|
</label>\`;
|
||||||
@ -1729,9 +1729,18 @@ export function getMessageAreaScript(): string {
|
|||||||
// 标记问题已回答
|
// 标记问题已回答
|
||||||
segmentDiv.classList.add('answered');
|
segmentDiv.classList.add('answered');
|
||||||
|
|
||||||
// 禁用所有输入
|
// 禁用所有输入并保持选中状态的高亮
|
||||||
const inputs = segmentDiv.querySelectorAll('input');
|
const inputs = segmentDiv.querySelectorAll('input');
|
||||||
inputs.forEach(input => input.disabled = true);
|
inputs.forEach(input => {
|
||||||
|
input.disabled = true;
|
||||||
|
// 确保选中的选项保持高亮
|
||||||
|
if (input.checked) {
|
||||||
|
const label = input.closest('.question-option');
|
||||||
|
if (label) {
|
||||||
|
label.classList.add('selected');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// 隐藏提交按钮
|
// 隐藏提交按钮
|
||||||
const submitBtn = segmentDiv.querySelector('.custom-submit');
|
const submitBtn = segmentDiv.querySelector('.custom-submit');
|
||||||
|
|||||||
Reference in New Issue
Block a user