Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autocomplete for https imports #107

Closed
brandonkal opened this issue Jul 9, 2020 · 7 comments
Closed

Add autocomplete for https imports #107

brandonkal opened this issue Jul 9, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@brandonkal
Copy link

This is a pain point with using Deno. Naturally the cache layout makes this very difficult for all tools.

@buttercubz
Copy link

This is a pain point with using Deno. Naturally the cache layout makes this very difficult for all tools.

take a look at this, I think it can help you

@brandonkal
Copy link
Author

That's a neat little utility but import maps are still unstable and even so, it doesn't provide autocomplete.

@bartlomieju bartlomieju added the enhancement New feature or request label Aug 4, 2020
@CGQAQ
Copy link
Contributor

CGQAQ commented Sep 5, 2020

@brandonkal Hope #172 will help you

@lucacasonato
Copy link
Member

@brandonkal We autocomplete already cached files from "DENO_DIR" now, and we have full IntelliSense for deno.land/x (https://www.reddit.com/r/Deno/comments/imitln/the_vs_code_deno_extension_now_has_intellisense/). I hope support for nest.land URLs will come soon. Does this solve the scope of the issue somewhat?

@brandonkal
Copy link
Author

Can we standardize on a generic autocomplete solution? Like a sitemap file at the domain root? This should make nest.land and more importantly other domains work without special consideration.

@lucacasonato
Copy link
Member

Like a sitemap file at the domain root?

This is not scalable. deno.land/x serves more than 750.000 unique files.

Also generalizing comes at the cost of accuracy. Because we know exactly which parts of a deno.land/x url have what possible values, we can give a very specific set of options to IntelliSense. In a general list of urls (like a site map) this is not really possible anymore.

I think we can give the best user experience by supporting each registry individually for now.

@kitsonk
Copy link
Contributor

kitsonk commented Apr 6, 2021

Outside of re-implementing support for the registry auto completions, we won't implement a "generic" solution which crawls web servers for imports. If a server wants to support import completions for Deno, they need to implement a /.well-known/deno-import-intellisense.json file which describes how their URLs are built and provide the API endpoints to provide the completion values.

@kitsonk kitsonk closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants