0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/cli/lsp
Andreu Botella 69ec45eac7
refactor(cli): Integrate standalone mode cert handling into Flags (#17419)
The way the standalone mode handles the `--cert` flag is different to
all other modes. This is because `--cert` takes a path to the
certificate file, which is directly added to the root cert store; except
for compile mode, where its byte contents are stored in the standalone
metadata, and they are added to the root cert store after the
`ProcState` is created.

This change instead changes `Flags::ca_file` (an `Option<String>`) into
`Flags::ca_data`, which can represent a `String` file path or a
`Vec<u8>` with the certificate contents. That way, standalone mode can
create a `ProcState` whose root cert store alreay contains the
certificate.

This change also adds a tests for certificates in standalone mode, since
there weren't any before.

This refactor will help with implementing web workers in standalone mode
in the future.
2023-01-18 01:18:24 +01:00
..
testing refactor(cli/tools): move flag and config logic to CliOptions (#17008) 2023-01-07 15:22:09 -05:00
analysis.rs refactor(cli): fewer clones (#17450) 2023-01-16 15:27:41 -05:00
cache.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
capabilities.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
client.rs chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
code_lens.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
completions.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
config.rs fix(lsp): treat empty string config value as None (#17227) 2023-01-03 16:59:48 +01:00
diagnostics.rs refactor(cli): fewer clones (#17450) 2023-01-16 15:27:41 -05:00
documents.rs refactor(cli): fewer clones (#17450) 2023-01-16 15:27:41 -05:00
language_server.rs refactor(cli): Integrate standalone mode cert handling into Flags (#17419) 2023-01-18 01:18:24 +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: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
performance.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
README.md feat(lsp): improve registry completion suggestions (#13023) 2021-12-14 06:24:11 +11:00
refactor.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
registries.rs refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
repl.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00: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 refactor(tsc): do not store some typescript declaration file text in multiple places (#17410) 2023-01-14 09:36:19 -05:00
urls.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00: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.