简体   繁体   中英

Monaco Editor URI use case?

Hi I'm trying out the Monaco editor and have noticed that some parts of the API ask for an optional URI or path. Examples:

The URI object documentation doesnt appear to have much info as to what its role in the editor is. Can anyone shed any light on to the use case of URIs in monaco. It seems like an option to provide content is always provided / required (so it doesnt seem to be dynamically reading from the provided URI).

Thanks!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM