diff options
| author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-01-08 23:48:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-08 23:48:46 +0100 |
| commit | c41d4ff90e09b63bd1894052352a5acba57b1704 (patch) | |
| tree | 52be95551ed263c2f4831aaefc78bb6fdda6d89c /cli | |
| parent | 2be1282be42369e558cc77f75b22488ce7a8215e (diff) | |
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/build.rs | 2 | ||||
| -rw-r--r-- | cli/lsp/tsc.rs | 2 | ||||
| -rw-r--r-- | cli/ops/bench.rs | 2 | ||||
| -rw-r--r-- | cli/ops/mod.rs | 2 | ||||
| -rw-r--r-- | cli/ops/testing.rs | 2 | ||||
| -rw-r--r-- | cli/tsc/mod.rs | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/cli/build.rs b/cli/build.rs index b4acc0d1d..24898a7a1 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -238,7 +238,7 @@ mod ts { cargo_manifest_dir: env!("CARGO_MANIFEST_DIR"), snapshot_path, startup_snapshot: None, - extensions: vec![Extension::builder() + extensions: vec![Extension::builder("deno_tsc") .ops(vec![ op_build_info::decl(), op_cwd::decl(), diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 9f2ac2ba0..fabe30ac7 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -2805,7 +2805,7 @@ fn js_runtime(performance: Arc<Performance>) -> JsRuntime { } fn init_extension(performance: Arc<Performance>) -> Extension { - Extension::builder() + Extension::builder("deno_tsc") .ops(vec![ op_exists::decl(), op_is_cancelled::decl(), diff --git a/cli/ops/bench.rs b/cli/ops/bench.rs index 3b27ffa7e..9b70cfa79 100644 --- a/cli/ops/bench.rs +++ b/cli/ops/bench.rs @@ -22,7 +22,7 @@ pub fn init( sender: UnboundedSender<BenchEvent>, filter: TestFilter, ) -> Extension { - Extension::builder() + Extension::builder("deno_bench") .ops(vec![ op_pledge_test_permissions::decl(), op_restore_test_permissions::decl(), diff --git a/cli/ops/mod.rs b/cli/ops/mod.rs index 96599a663..c31a30531 100644 --- a/cli/ops/mod.rs +++ b/cli/ops/mod.rs @@ -14,7 +14,7 @@ pub fn cli_exts(ps: ProcState) -> Vec<Extension> { } fn init_proc_state(ps: ProcState) -> Extension { - Extension::builder() + Extension::builder("deno_cli") .ops(vec![op_npm_process_state::decl()]) .state(move |state| { state.put(ps.clone()); diff --git a/cli/ops/testing.rs b/cli/ops/testing.rs index e5c0a2b99..e9d0acf41 100644 --- a/cli/ops/testing.rs +++ b/cli/ops/testing.rs @@ -30,7 +30,7 @@ pub fn init( fail_fast_tracker: FailFastTracker, filter: TestFilter, ) -> Extension { - Extension::builder() + Extension::builder("deno_test") .ops(vec