DEV Community

Discussion on: Getting started with Deno

Collapse
 
aexol profile image
Artur Czemiel

I am kinda lazy and could've done it myself, but do you get autocomplete inside IDE for modules imported from URL?

Collapse
 
johncarroll profile image
John Carroll • Edited

Someone's already built a vs code extension for Deno flavor typescript: github.com/ameerthehacker/deno-vscode also github.com/justjavac/typescript-de....

Not sure if they currently support autocomplete, but, when IDEs do start supporting autocomplete for Deno modules, it'll probably be through an extension. It's also worth noting, that the recommended convention for a deno project is to only import from URL's once, in a single package.json like file called deps.ts and then re-export those modules locally from that file (example). That way you also ensure your entire project is using the same version of a module and you can change the version in a single place.

Given that Typescript itself is a node project, seems unlikely Deno will get any "official" support from the Typescript team anytime soon. That being said, one of the Deno project's goals is to provide a secure runtime for embedding javascript in larger applications. Given that Microsoft's CosmosDB database supports running javascript procedures natively (I assume through some kind of embedded VM), and given that Deno is built on Typescript (a Microsoft project), I could see Microsoft taking more/faster interest in Deno then they might ordinarily.

Collapse
 
wuz profile image
Conlin Durbin

Probably not at this point, but I am honestly not sure. If it doesn't exist, I'd guess it will be added soon!