Repository navigation
[Feature Request] Support URLs as model URI (for URL imports) #3811
Unanswered
Théo champion (tzvc)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.tsfile. Then, load that file into the editor with.addExtraLibspecifying 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!
All reactions