1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/cli/lsp
Bartek Iwańczuk 4d1a14ca7f
feat: auto-discover package.json for npm dependencies (#17272)
This commits adds auto-discovery of "package.json" file when running
"deno run" and "deno task" subcommands. In case of "deno run" the
"package.json" is being looked up starting from the directory of the
script that is being run, stopping early if "deno.json(c)" file is found
(ie. FS tree won't be traversed "up" from "deno.json").

When "package.json" is discovered the "--node-modules-dir" flag is
implied, leading to creation of local "node_modules/" directory - we
did that, because most tools relying on "package.json" will expect
"node_modules/" directory to be present (eg. Vite). Additionally 
"dependencies" and "devDependencies" specified in the "package.json"
are downloaded on startup. 

This is a stepping stone to supporting bare specifier imports, but
the actual integration will be done in a follow up commit.

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2023-02-20 19:14:06 +01:00
..
testing refactor(cli/tools): move flag and config logic to CliOptions (#17008) 2023-01-07 15:22:09 -05:00
analysis.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
cache.rs fix: support import map specified as data uri (#17531) 2023-01-25 16:51:04 -05:00
capabilities.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
client.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
code_lens.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
completions.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
config.rs refactor(lsp): fewer clones (#17551) 2023-01-26 23:24:03 +01:00
diagnostics.rs refactor: use deno_graph's semver and npm structs (#17791) 2023-02-15 13:20:40 -05:00
documents.rs feat: auto-discover package.json for npm dependencies (#17272) 2023-02-20 19:14:06 +01:00
language_server.rs feat: auto-discover package.json for npm dependencies (#17272) 2023-02-20 19:14:06 +01:00
logging.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
lsp_custom.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
mod.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
parent_process_checker.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
path_to_regex.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
performance.rs refactor(lsp): fewer clones (#17551) 2023-01-26 23:24:03 +01:00
README.md feat(lsp): improve registry completion suggestions (#13023) 2021-12-14 06:24:11 +11:00
refactor.rs refactor(lsp): fewer clones (#17551) 2023-01-26 23:24:03 +01:00
registries.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
repl.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
semantic_tokens.rs chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
text.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
tsc.rs fix: revert lsp related internal specifiers (#17673) 2023-02-06 22:49:49 +01:00
urls.rs fix: revert lsp related internal specifiers (#17673) 2023-02-06 22:49:49 +01: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.