1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/cli/lsp
Bartek Iwańczuk a1f0796fcc
feat: Add support for import assertions and JSON modules (#12866)
This commit adds proper support for import assertions and JSON modules.

Implementation of "core/modules.rs" was changed to account for multiple possible
module types, instead of always assuming that the code is an "ES module". In
effect "ModuleMap" now has knowledge about each modules' type (stored via
"ModuleType" enum). Module loading pipeline now stores information about
expected module type for each request and validates that expected type matches
discovered module type based on file's "MediaType".

Relevant tests were added to "core/modules.rs" and integration tests,
additionally multiple WPT tests were enabled.

There are still some rough edges in the implementation and not all WPT were
enabled, due to:
a) unclear BOM handling in source code by "FileFetcher"
b) design limitation of Deno's "FileFetcher" that doesn't download the same
module multiple times in a single run

Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-12-15 19:22:36 +01:00
..
analysis.rs chore: upgrade lspower to 1.4.0 (#12894) 2021-11-25 12:10:12 +11:00
cache.rs refactor: re-export anyhow from deno_core (#12777) 2021-11-16 09:02:28 -05:00
capabilities.rs chore: upgrade lspower to 1.4.0 (#12894) 2021-11-25 12:10:12 +11:00
code_lens.rs fix: upgrade swc fixing many bundling and --no-check bugs (#13025) 2021-12-08 19:12:14 -05:00
completions.rs fix(lsp): handle import specifier not having a trailing quote (#13074) 2021-12-13 16:28:35 -05:00
config.rs refactor: re-export anyhow from deno_core (#12777) 2021-11-16 09:02:28 -05:00
diagnostics.rs chore: upgrade lspower to 1.4.0 (#12894) 2021-11-25 12:10:12 +11:00
documents.rs chore: updates to support deno_graph API changes (#13080) 2021-12-15 07:39:20 +11:00
language_server.rs feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
lsp_custom.rs feat(lsp): registry auto discovery (#10813) 2021-06-01 21:53:08 +10:00
mod.rs chore: upgrade to Rust 1.57.0 (#12968) 2021-12-04 14:19:06 +01:00
parent_process_checker.rs fix(lsp): do not output to stderr before exiting the process (#11562) 2021-07-31 21:05:09 -04:00
path_to_regex.rs refactor: re-export anyhow from deno_core (#12777) 2021-11-16 09:02:28 -05:00
performance.rs chore: use parking_lot for synchronization primitives to align with tokio (#11289) 2021-07-06 23:48:01 -04:00
README.md feat(lsp): improve registry completion suggestions (#13023) 2021-12-14 06:24:11 +11:00
refactor.rs feat(lsp): implement refactoring code actions (#11555) 2021-08-06 11:46:32 +10:00
registries.rs feat(lsp): improve registry completion suggestions (#13023) 2021-12-14 06:24:11 +11:00
semantic_tokens.rs feat(lsp): add workspace symbol provider (#12787) 2021-11-23 11:08:56 +11:00
text.rs refactor(lsp): use deno_ast and cache swc ASTs (#11780) 2021-09-07 10:39:32 -04:00
tsc.rs chore: upgrade lspower to 1.4.0 (#12894) 2021-11-25 12:10:12 +11:00
urls.rs refactor(lsp): use deno_graph and single document struct (#12535) 2021-10-29 10:56:01 +11: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.