Files
范智鹏 6aaccd490c fix: 审查报告修复与清理,升级至 1.3.0
- 版本号 1.2.0 -> 1.3.0;CHANGELOG 新增 1.3.0 条目(修复 6 项 + 清理 3 项)
- addCustomRule 空壳命令改为打开设置面板(抽取 openSetupPanel 复用)
- deactivate 清理 analysisTimers pending 定时器 + 显式 dispose markers
- PMD execPmd 去掉 stdout.length>0 兜底,非零退出按 stderr 报错
- SQLFluff 项目配置检测全量支持 setup.cfg/tox.ini/pep8.ini/pyproject.toml(内容感知)
- 删除 orchestrator 未使用的 getAdapterMap/getAdaptersByIds,补充单语言单 linter 设计注释
- 删除 pmd.ts 未使用的 jarPathChecked 死字段
- merger 翻译配对改为按 originalRuleId 匹配,新增 2 个测试
- runStaticAndApply 包 try-catch,消除未处理 Promise 拒绝
- AGENTS.md 日志规则新增打包排除项;_AI_USAGE_LOG.md 追加记录
2026-08-09 14:35:43 +08:00

1.3 KiB

Change Log

All notable changes to the "vscode-code-reviewer" extension will be documented in this file.

Check Keep a Changelog for recommendations on how to structure this file.

[1.3.0] - 2026-08-09

修复

  • 修复 codeReviewer.addCustomRule 空壳命令:改为打开设置面板,进入真正的规则添加流程(抽取 openSetupPanel,与 openSetup 共用)
  • 修复插件停用资源清理:清空待执行的延迟分析定时器,显式释放诊断集合,消除停用后回调抛错隐患
  • 修复 PMD 退出码判定:去掉 stdout.length > 0 兜底,非零退出按 stderr 报错,不再静默吞错
  • 修复 SQLFluff 项目配置检测遗漏:全量支持 setup.cfg / tox.ini / pep8.ini / pyproject.toml,按配置段内容感知匹配,避免项目配置被内置临时配置覆盖
  • 修复 AI 翻译结果配对错位:由数组下标改为按 originalRuleId 匹配,AI 返回重排或漏译时不再错挂诊断
  • 修复启动/打开文件时分析错误未被捕获:runStaticAndApply 增加 try-catch 保护,消除未处理 Promise 拒绝

清理

  • 删除 orchestrator 未使用的 getAdapterMap() / getAdaptersByIds() 死方法
  • 删除 pmd.ts 未使用的 jarPathChecked 死字段
  • 移除 SQLFluff 不支持的 .sqlfluff.ini 检测死代码

[Unreleased]