1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/cli/lsp
Bartek Iwańczuk 5504acea67
feat: add --allow-import flag (#25469)
This replaces `--allow-net` for import permissions and makes the
security sandbox stricter by also checking permissions for statically
analyzable imports.

By default, this has a value of
`--allow-import=deno.land:443,jsr.io:443,esm.sh:443,raw.githubusercontent.com:443,gist.githubusercontent.com:443`,
but that can be overridden by providing a different set of hosts.

Additionally, when no value is provided, import permissions are inferred
from the CLI arguments so the following works because
`fresh.deno.dev:443` will be added to the list of allowed imports:

```ts
deno run -A -r https://fresh.deno.dev
```

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2024-09-26 01:50:54 +00:00
..
testing feat: default to TS for file extension and support ext flag in more scenarios (#25472) 2024-09-18 21:15:13 +02:00
analysis.rs fix: do not panic running invalid file specifier (#25530) 2024-09-18 14:51:39 +01:00
cache.rs fix: do not panic running invalid file specifier (#25530) 2024-09-18 14:51:39 +01:00
capabilities.rs refactor(lsp): changes for lsp_types 0.97.0 (#25169) 2024-08-24 01:21:21 +01:00
client.rs fix(lsp): panic on url_to_uri() (#25238) 2024-08-28 05:15:48 +01:00
code_lens.rs perf: update deno_ast to 0.41 (#24819) 2024-07-31 18:31:03 -04:00
completions.rs fix: do not panic running invalid file specifier (#25530) 2024-09-18 14:51:39 +01:00
config.rs BREAKING: remove support for remote import maps in deno.json (#25836) 2024-09-23 18:46:50 +00:00
diagnostics.rs fix(lsp): encode url parts before parsing as uri (#25509) 2024-09-11 11:11:39 +01:00
documents.rs fix: do not panic running invalid file specifier (#25530) 2024-09-18 14:51:39 +01:00
jsr.rs refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
language_server.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
logging.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
lsp_custom.rs refactor(lsp): changes for lsp_types 0.97.0 (#25169) 2024-08-24 01:21:21 +01:00
mod.rs perf(lsp): lock out requests until init is complete (#23998) 2024-05-29 01:26:43 +01:00
npm.rs refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
parent_process_checker.rs fix(lsp): use a dedicated thread for the parent process checker (#21869) 2024-01-09 11:36:03 -05:00
path_to_regex.rs chore: upgrade to rust 1.79 (#24207) 2024-06-14 17:10:57 +05:30
performance.rs refactor(lsp): cleanup partially locking methods (#23723) 2024-05-08 06:34:42 +01:00
README.md docs: fix broken deno manual link (#20667) 2023-09-25 14:09:27 +02:00
refactor.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
registries.rs refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
repl.rs fix(lsp): encode url parts before parsing as uri (#25509) 2024-09-11 11:11:39 +01:00
resolver.rs fix: do not panic running invalid file specifier (#25530) 2024-09-18 14:51:39 +01:00
search.rs feat(lsp): jsr specifier completions (#22612) 2024-02-29 03:54:16 +00:00
semantic_tokens.rs perf(lsp): Cache semantic tokens for open documents (#23799) 2024-05-15 01:51:48 +00:00
text.rs fix(lsp): handle multiline semantic tokens (#23691) 2024-05-04 21:48:06 +01:00
tsc.rs fix: do not panic running invalid file specifier (#25530) 2024-09-18 14:51:39 +01:00
urls.rs fix(lsp): encode url parts before parsing as uri (#25509) 2024-09-11 11:11:39 +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.