1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
denoland-deno/cli/lsp
Nathan Whitaker 464ee9155e
fix(check/lsp): fix bugs with tsc type resolution, allow npm packages to augment ImportMeta (#27690)
Fixes #26224.
Fixes #27042.

There were three bugs here:
- we were only resolving `/// <reference types` directives starting with
`npm:`, which meant we failed to resolve bare specifiers (this broke the
`/// <reference types="vite/client">` directive in most of the vite
templates)
- the `$node_modules` workaround caused us to fail to read files for
tsc. For instance tsc would construct new paths based on specifiers
containing `$node_modules`, and since we hadn't created those we weren't
mapping them back to the original (this broke some type resolution
within `vite/client`)
- our separation of `ImportMeta` across node and deno globals in tsc
meant that npm packages couldn't augment `ImportMeta` (this broke
`vite/client`'s augmentation to add `import.meta.env` and others)


After this, the only remaining issue in the vanilla vite template is our
error on `/vite.svg` (which is an ambient module), and I'll look into
that next.
2025-01-16 19:20:04 +00:00
..
testing refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
analysis.rs refactor: move CliNpmResolver to deno_resolver::npm::NpmResolver (#27659) 2025-01-14 10:01:05 -05:00
cache.rs refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
capabilities.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
client.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
code_lens.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
completions.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
config.rs refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
diagnostics.rs refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
documents.rs refactor: deno_config 0.45 (#27660) 2025-01-14 13:00:31 +01:00
jsr.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
language_server.rs refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
logging.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
lsp_custom.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
mod.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
npm.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
parent_process_checker.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
path_to_regex.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
performance.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
README.md docs: fix broken deno manual link (#20667) 2023-09-25 14:09:27 +02:00
refactor.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
registries.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
repl.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
resolver.rs refactor: move CliNpmResolver to deno_resolver::npm::NpmResolver (#27659) 2025-01-14 10:01:05 -05:00
search.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
semantic_tokens.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
text.rs refactor: update deno_core for error refactor (#26867) 2025-01-08 14:52:32 -08:00
tsc.rs fix(check/lsp): fix bugs with tsc type resolution, allow npm packages to augment ImportMeta (#27690) 2025-01-16 19:20:04 +00:00
urls.rs refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00

Deno Language Server

The Deno Language Server provides a server implementation of the Language Server Protocol which is specifically tailored to provide a Deno view of code. It is integrated into the command line and can be started via the lsp sub-command.

This documentation has been moved to the Deno manual.