This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Feature Request] Support URLs as model URI (for URL imports) #3248
Labels
feature-request
Request for new features or functionality
Context
Description
Hi there,
I'm building a web IDE for Deno which supports URL imports:
This is not yet supported by Typescript so I have to make a custom logic into monaco.
My first thought was: When I detect a URL import in the code, fetch the URL and compile all the sources into one big
.d.ts
file. Then, load that file into the editor with.addExtraLib
specifying the URL as the filepath.I thought this would be enough for monaco to "link" the import URL with the type definition now loaded locally at that address, but it appears not.
What am I missing here? If this is not possible this way, what could I try to support URL imports in TS in monaco?
Cheers!
The text was updated successfully, but these errors were encountered: