diff options
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r-- | test_util/src/lib.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index d156f4ebb..abfa86cba 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -614,6 +614,18 @@ async fn main_server(req: Request<Body>) -> hyper::Result<Response<Body>> { ); Ok(res) } + (_, "/.well-known/deno-import-intellisense.json") => { + let file_path = root_path() + .join("cli/tests/lsp/registries/deno-import-intellisense.json"); + if let Ok(body) = tokio::fs::read(file_path).await { + Ok(custom_headers( + "/.well-known/deno-import-intellisense.json", + body, + )) + } else { + Ok(Response::new(Body::empty())) + } + } _ => { let mut file_path = root_path(); file_path.push(&req.uri().path()[1..]); |