Comments (4)
@scarf005 It looked like #1069 was about exported symbols. Were you talking about files? This is already implemented: you need to add the following to your vscode settings:
{
"deno.suggest.imports.hosts": {
"https://deno.land": true
}
}
jsr:@std/...
supports this without configuration.
from vscode_deno.
It looked like #1069 was about exported symbols. Were you talking about files?
I was referring to symbols.
e.g I have to explicitly 'cache' https://deno.land/std/collections/map_values.ts
to be able to import mapValues
from there.
This is already implemented: you need to add the following to your vscode settings:
this doesn't work; i've already added the settings, yet in above screenshot it wouldn't suggest importing https://deno.land/std/collections/map_values.ts
or https://deno.land/std/collections/mod.ts
to be able to use mapValues
.
from vscode_deno.
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]`.
]
}
from vscode_deno.
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.
i disagree.
jsr:
ornpm:
specifiers cause vendor lock-in (namely, deno). only URLs are free of vendor lock-in.- there's already existing package sniffing infrastructure (apiland), so it makes more sense to provide
preloadPackages
for http thanjsr
.
from vscode_deno.
Related Issues (20)
- Formating documents with deno disabled HOT 1
- Perplexing effect of `deno cache` HOT 3
- Property 'cron' does not exist on type 'typeof Deno'.deno-ts(2339) HOT 2
- [FR] Add support for all testing features supported in vs code testing
- Deixando o VS Code muito lento HOT 1
- `useTabs: true` not respected when formatting via vscode deno extension HOT 1
- Version mismatch warning with latest canary
- Import suggestions ignores local package's deno.json imports when using workspaces
- Updating to version v3.38.1 shows errors HOT 5
- Investigate why vsce 2.31.1 breaks this extension
- False positive deno-ts(2367)?
- Add global default format options
- Support for `unstable-css` as CSS formatter in VSCode HOT 5
- Allow `NO_COLOR` env var to be overridden by `deno.env` workspace setting
- Unable to convert file URL with square brackets to URI
- High CPU, memory usage and OS crash when JSDoc importing `"/dev/random"`
- Unstable flags not respected when running tests HOT 1
- Import map not recognized for sub-packages when using workspaces and deno.enablePaths HOT 1
- SolidJS JSX triggers the Cannot find name 'React'. Did you mean 'preact'? deno-ts(2552) HOT 1
- Relative import with ~/ triggers deno(import-prefix-missing) HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode_deno.