0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-23 13:43:31 -05:00
denoland-deno/tests
Nathan Whitaker c31b670323
fix(lsp): ignore errors on ambient module imports (#27855)
This makes it so imports of ambient modules (e.g. `$app/environment` in
svelte, any virtual module in vite, or other module provided by a
bundler) don't error in the LSP.

The way this works is that when we request diagnostics from TSC, we also
respond with the list of ambient modules. Then, in the diagnostics code,
we save diagnostics (produced by deno) that may be invalidated as an
ambient module and wait to publish the diagnostics until we've received
the ambient modules from TSC.

The actual ambient modules you get from TSC can contain globs, e.g.
`*.css`. So when we get new ambient modules, we compile them all into a
regex and check erroring imports against that regex. Ambient modules
should change rarely, so in most cases we should be using a pre-compiled
regex, which executes in linear time (wrt the specifier length).

TODO:
- Ideally we should only publish once, right now we publish with the
filtered specifiers and then the TSC ones
- deno check (#27633)
2025-01-30 15:34:59 +01:00
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
integration fix(lsp): ignore errors on ambient module imports (#27855) 2025-01-30 15:34:59 +01:00
napi chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
node_compat fix(ext/node): clear tz cache when setting process.env.TZ (#27826) 2025-01-30 15:34:57 +01:00
registry fix(ext/node): do not apply socket-init-workaround to ipc socket (#27779) 2025-01-30 15:34:57 +01:00
specs fix(check): better handling of TypeScript in npm packages for type checking (#27853) 2025-01-30 15:34:58 +01:00
testdata fix(check): compiler options from workspace members (#27785) 2025-01-30 15:34:58 +01:00
unit fix(process/windows): correct command resolution when PATH env var not uppercase (#27846) 2025-01-30 15:34:58 +01:00
unit_node fix(ext/node): implement crypto.hash (#27858) 2025-01-30 15:34:58 +01:00
util refactor: move denort to separate crate (#27688) 2025-01-22 00:24:19 +01:00
wpt fix(ext/crypto): export private x25519 JWK key (#27828) 2025-01-30 15:34:56 +01:00
Cargo.toml chore: update ensure_registry_files_local to handle scoped packages (#27801) 2025-01-30 15:34:54 +01:00
lib.rs chore: Happy New Year 2025 (#27509) 2025-01-09 15:19:16 -05:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests