yi-Xu-0100/dsh-ptc-parse-frame ↗★ 0

dsh-ptc-parse-frame

DSH PTC run_code plugin: append the parse error's line number and code frame so syntax mistakes are visible. 适合在运行代码时,需要直观查看语法错误具体位置和上下文的开发者。

Package
dsh-ptc-parse-frame
Compatibility
Unverified
Version
0.2.0
License
MIT
Last updated
Oct 18, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yi-Xu-0100/dsh-ptc-parse-frame

配置

cordis.patch.yml 的默认行:

- insert:
    - id: ptc-parse-frame
      name: dsh-ptc-parse-frame
      config:
        enabled: true
        maxFrameLines: 10
        sourceName: run_code.ts
配置默认值说明
enabledtrue设为 false 时插件完全 no-op(但保持已安装)。
maxFrameLines10代码框正文的最大行数(1–40),优先保留 caret 附近的行。
sourceNamerun_code.ts行号前缀,也是「已经带位置」检测用的名字。