2

嗨,我正在试用 Monaco 编辑器,并注意到 API 的某些部分要求提供可选的 URI 或路径。例子:

URI 对象文档似乎没有太多关于它在编辑器中的作用的信息。任何人都可以对摩纳哥的 URI 用例有所了解。似乎始终提供/需要提供内容的选项(因此它似乎不是从提供的 URI 动态读取)。

谢谢!

4

1 回答 1

0

I also wondered myself and the best guess I have is that these URIs are stored internally to find a resource (mostly models) by that value. Usually you don't need that, but some functionality only takes a URI, which internally is used to lookup a model, I think.

于 2021-01-19T07:55:21.233 回答