在扩展 A 中,我有一个像这样的 VSCode 架构文件
{
"$id": "foo.bar",
"definitions": {
"example": {...}
}
}
在扩展 B 中,我想像这样引用 foo.bar 文件
{
"type": "object",
"properties": {
"filters": {
"$ref": "foo.bar#/definitions/example"
}
}
}
如果不通过 http 引用文件,这可能吗?
回答1
将本地文件作为 URI 引用的规范方法是 file:///absolute/path/name
。我不知道 VSCode 是否支持。