[英]Can you reference schema files from another VSCode extension?
在扩展 A 中,我有一个像这样的 VSCode 架构文件
{
"$id": "foo.bar",
"definitions": {
"example": {...}
}
}
在扩展 B 中,我想像这样引用 foo.bar 文件
{
"type": "object",
"properties": {
"filters": {
"$ref": "foo.bar#/definitions/example"
}
}
}
如果不通过 http 引用文件,这可能吗?
将本地文件作为 URI 引用的规范方法是file:///absolute/path/name
。 我不知道 VSCode 是否支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.