VSC Protobuf3
VSC Protobuf3 是一个面向 VS Code 的 Protobuf 3 扩展,为 .proto 文件提供基础但实用的编辑支持,重点覆盖日常开发中最常用的语言能力。
功能
.proto 文件语言识别与语法高亮
- 基础语法与语义诊断
- 跳转到定义
- 查找引用
- 工作区内
import 解析
- 通过
proto.includePaths 解析额外的 proto 目录
- 内置支持常见
google/protobuf/* well-known types
- 支持嵌套
message / enum 的解析与导航
配置
proto.includePaths
用于指定额外的 proto include 目录,以支持解析工作区之外的导入文件。
示例:
{
"proto.includePaths": [
"third_party/proto",
"../shared-protos"
]
}
支持:
开发
npm install
npm test
npm run test:integration
打包
npm run package
默认会在仓库根目录生成对应版本的 .vsix 文件。
已知定位
这个扩展当前聚焦于 Protobuf 3 的核心编辑体验,还不包含更重型的语言特性,比如补全、hover、重构或代码操作。
License
MIT
| |