diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/lsp/tsc.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 6ed727d9f..86c9a2980 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -56,12 +56,8 @@ pub fn get_asset(asset: &str) -> Option<&'static str> { "/lib.webworker.iterable.d.ts" => inc!("lib.webworker.iterable.d.ts"), // These come from op crates // TODO(@kitsonk) these is even hackier than the rest of this... - "/lib.deno.web.d.ts" => { - Some(include_str!("../../op_crates/web/lib.deno_web.d.ts")) - } - "/lib.deno.fetch.d.ts" => { - Some(include_str!("../../op_crates/fetch/lib.deno_fetch.d.ts")) - } + "/lib.deno.web.d.ts" => Some(js::DENO_WEB_LIB), + "/lib.deno.fetch.d.ts" => Some(js::DENO_FETCH_LIB), // These are included in the snapshot for TypeScript, and could be retrieved // from there? "/lib.d.ts" => inc!("lib.d.ts"), |