You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not a bug report. (please use a different template for reporting a bug)
This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
Hi there,
I'm building a web IDE for Deno which supports URL imports:
// valid in denoimport{serve}from"https://deno.land/[email protected]/http/server.ts";// serve is fully typed here
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.
This discussion was converted from issue #3248 on March 13, 2023 12:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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!
Beta Was this translation helpful? Give feedback.
All reactions