-
Notifications
You must be signed in to change notification settings - Fork 144
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
auto-import for std
modules
#1088
Comments
I was referring to symbols. e.g I have to explicitly 'cache'
this doesn't work; i've already added the settings, yet in above screenshot it wouldn't suggest importing |
Okay I understand, the apiland link was a response to the last thing I said in #1069 (comment). We can add a setting to preload select remote libs into the ts server so their auto-imports are always available. However, at this point we would only do that for jsr or npm specifiers. With these in Deno, it's no longer worth developing package sniffing infrastructure for arbitrary or favoured https URLs. e.g.: {
"deno.preloadPackages": [
"jsr:@std/path", // Preload all exports in `jsr:@std/[email protected]`.
"jsr:@std/fs/.", // Preload only the default export in `jsr:@std/[email protected]`.
"jsr:@std/fs/expand-glob", // Preload only the `expand-glob` export in `jsr:@std/[email protected]`.
"npm:preact" // Preload whatever paths and exports are included in the type declarations for `npm:[email protected]`.
]
} |
i disagree.
|
being able to get import assist for
std
modules would be helpful.according to https://docs.deno.com/runtime/manual/advanced/language_server/imports, following endpoints seem to provide module entries:
https://apiland.deno.dev/completions/items/std/0.218.2/
https://apiland.deno.dev/completions/items/std/0.218.2/collections
Originally posted by @scarf005 in #1069 (comment)
The text was updated successfully, but these errors were encountered: