1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-01 03:54:06 -05:00
denoland-deno/cli
Bartek Iwańczuk e9edd7e14d
refactor: Rewrite Inspector implementation (#10725)
This commit refactors implementation of inspector.

The intention is to be able to move inspector implementation to "deno_core".

Following things were done to make that possible:

* "runtime/inspector.rs" was split into "runtime/inspector/mod.rs"
and "runtime/inspector/server.rs", separating inspector implementation
from Websocket server implementation.

* "DenoInspector" was renamed to "JsRuntimeInspector" and reference to "server"
was removed from the structure, making it independent of Websocket server
used to connect to Chrome Devtools.

* "WebsocketSession" was renamed to "InspectorSession" and rewritten in such
a way that it's not tied to Websockets anymore; instead it accepts a pair
of "proxy" channel ends that allow to integrate the session with different
"transports".

* "InspectorSession" was renamed to "LocalInspectorSession" to better indicate
that it's an "in-memory" session and doesn't require Websocket server. It was
also rewritten in such a way that it uses "InspectorSession" from previous point
instead of reimplementing "v8::inspector::ChannelImpl" trait; this is done by using
the "proxy" channels to communicate with the V8 session.

Consequently "LocalInspectorSession" is now a frontend to "InspectorSession". This
introduces a small inconvenience that awaiting responses for "LocalInspectorSession" requires
to concurrently poll worker's event loop. This arises from the fact that "InspectorSession"
is now owned by "JsRuntimeInspector", which in turn is owned by "Worker" or "WebWorker".
To ease this situation "Worker::with_event_loop" helper method was added, that takes
a future and concurrently polls it along with the event loop (using "tokio::select!" macro
inside a loop).
2021-05-26 17:47:33 +02:00
..
bench fix(lsp): re-enable the per resource configuration without a deadlock (#10625) 2021-05-20 19:56:48 +10:00
dts docs(cli/dts): tag test permission example as typescript (#10753) 2021-05-25 15:01:15 +02:00
lsp feat(lsp): show hints from deno_lint in addition to messages (#10739) 2021-05-26 08:15:09 +10:00
ops fix: static import permissions in dynamic imports 2021-05-17 09:45:54 +02:00
tests fix(extension/file): update File constructor following the spec (#10760) 2021-05-25 22:35:17 +09:00
tools refactor: Rewrite Inspector implementation (#10725) 2021-05-26 17:47:33 +02:00
tsc chore: update deno_lint binary used in CI to v0.5.0 (#10652) 2021-05-18 17:24:01 +02:00
ast.rs fix(runtime): support source maps with Deno.emit() and bundle (#10510) 2021-05-19 14:18:01 +10:00
auth_tokens.rs remove macro_use (#9884) 2021-03-26 12:34:25 -04:00
build.rs feat(extensions): add BroadcastChannel 2021-05-23 15:16:42 +02:00
Cargo.toml 1.10.2 2021-05-17 17:34:45 +02:00
checksum.rs chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
colors.rs Remove denort optimization (#10350) 2021-04-26 13:28:38 -04:00
config_file.rs fix(runtime): support source maps with Deno.emit() and bundle (#10510) 2021-05-19 14:18:01 +10:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_dir.rs chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
diagnostics.rs feat(runtime): stabilize Deno.fstat and Deno.fstatSync (#10108) 2021-04-12 11:27:38 +02:00
diff.rs chore: make all tests annotated with #[cfg(test)] (#9347) 2021-02-01 10:55:23 -05:00
disk_cache.rs feat: blob URL support (#10045) 2021-04-07 15:22:14 +02:00
errors.rs chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
file_fetcher.rs fix(cli): ignore x-typescript-types header when media type is not js/jsx (#10574) 2021-05-13 08:07:22 +09:00
file_watcher.rs feat: add deno test --watch (#9160) 2021-05-10 08:06:13 +02:00
flags.rs feat(test): add support for type checking documentation (#10521) 2021-05-11 01:54:39 +02:00
flags_allow_net.rs chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
fmt_errors.rs fix(#10292): Don't gray-out internal frames (#10293) 2021-04-22 08:30:03 -04:00
fs_util.rs fix: do not panic on not found cwd (#10238) 2021-04-21 17:52:00 +02:00
http_cache.rs feat: blob URL support (#10045) 2021-04-07 15:22:14 +02:00
http_util.rs remove macro_use (#9884) 2021-03-26 12:34:25 -04:00
import_map.rs remove macro_use (#9884) 2021-03-26 12:34:25 -04:00
info.rs feat(cli): represent type dependencies in info (#9630) 2021-03-01 22:49:58 +11:00
lockfile.rs remove macro_use (#9884) 2021-03-26 12:34:25 -04:00
logger.rs feat(lsp): add internal debugging logging (#10438) 2021-05-11 14:54:10 +10:00
main.rs refactor: Rewrite Inspector implementation (#10725) 2021-05-26 17:47:33 +02:00
media_type.rs upgrade: Rust 1.51.0 (#9895) 2021-03-25 19:17:37 +01:00
module_graph.rs feat(lsp): diagnostics for deno types and triple-slash refs (#10699) 2021-05-25 12:34:01 +10:00
module_loader.rs fix: static import permissions in dynamic imports 2021-05-17 09:45:54 +02:00
program_state.rs feat(extensions): BroadcastChannel WPT conformance 2021-05-23 15:16:42 +02:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
source_maps.rs feat: blob URL support (#10045) 2021-04-07 15:22:14 +02:00
specifier_handler.rs fix: static import permissions in dynamic imports 2021-05-17 09:45:54 +02:00
standalone.rs feat(extensions): BroadcastChannel WPT conformance 2021-05-23 15:16:42 +02:00
text_encoding.rs chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
tokio_util.rs feat: native HTTP bindings (#9935) 2021-04-08 18:34:15 -04:00
tsc.rs feat(extensions): add BroadcastChannel 2021-05-23 15:16:42 +02:00
unix_util.rs chore: update copyright headers (#10243) 2021-04-20 14:27:36 +09:00
version.rs Remove denort optimization (#10350) 2021-04-26 13:28:38 -04:00

Deno CLI Crate

crates docs

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.