文件
Paze-C-CPP-Compiler/vscode-extension/package.json
T
Paze AI 78cffe0bb4 feat: Windows 体验完善
1. 一键安装包 (build-release.ps1)
   - 打包 pcc.exe + 标准头文件 + Windows 头文件 + 运行时库
   - 生成 pcc.bat 启动器,自动设置 include/lib 路径
   - 输出: release/pcc-0.9.28-win32.zip (594 KB)

2. GUI 程序支持验证
   - -Wl,-subsystem=windows 正确生成 GUI 程序 (PE Subsystem=2)
   - MessageBox 弹窗测试通过

3. VS Code 插件 (vscode-extension/)
   - C 语法高亮 (TextMate grammar)
   - PCC: Build (Ctrl+Shift+B) / PCC: Build & Run (Ctrl+F5)
   - 可配置 include/lib 路径和 pcc 可执行文件位置

4. Windows API 头文件验证
   - 系统信息/时间/注册表/控制台/文件 API 编译运行正常
   - PE 导入表格式正确 (kernel32.dll, msvcrt.dll)

5. 测试套件验证
   - tests2 基础测试 48/53 通过
   - 其余为测试框架差异 (stderr 合并/参数传递),非编译器 bug
2026-08-16 14:15:26 +08:00

116 行
3.1 KiB
JSON

{
"name": "PCC C Language Support",
"displayName": "PCC C Language Support",
"description": "C language support with Paze C Compiler (PCC) integration",
"version": "0.1.0",
"publisher": "PazeAI",
"engines": {
"vscode": "^1.60.0"
},
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [
{
"id": "c",
"aliases": [
"C",
"c"
],
"extensions": [
".c",
".h"
]
}
],
"grammars": [
{
"language": "c",
"scopeName": "source.c",
"path": "./syntaxes/c.json"
}
],
"configuration": {
"title": "PCC",
"properties": {
"pcc.executable": {
"type": "string",
"default": "",
"description": "Path to pcc executable. If empty, searches PATH."
},
"pcc.includePath": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional include paths (-I)."
},
"pcc.libPath": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional library paths (-L)."
},
"pcc.args": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Extra arguments passed to pcc."
},
"pcc.outputDir": {
"type": "string",
"default": "",
"description": "Output directory for compiled exe. Empty = same dir as source."
}
}
}
},
"main": "./extension.js",
"activationEvents": [
"onCommand:pcc.build",
"onCommand:pcc.run"
],
"commands": [
{
"command": "pcc.build",
"title": "PCC: Build"
},
{
"command": "pcc.run",
"title": "PCC: Build & Run"
}
],
"keybindings": [
{
"command": "pcc.build",
"key": "ctrl+shift+b",
"when": "editorLangId == c"
},
{
"command": "pcc.run",
"key": "ctrl+f5",
"when": "editorLangId == c"
}
],
"menus": {
"editor/title": [
{
"command": "pcc.build",
"when": "editorLangId == c",
"group": "navigation"
},
{
"command": "pcc.run",
"when": "editorLangId == c",
"group": "navigation"
}
]
}
}