summaryrefslogtreecommitdiff
path: root/cli/lsp/tsc.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-12-08 16:33:50 +0100
committerGitHub <noreply@github.com>2020-12-08 16:33:50 +0100
commit9bff85836cf4052ef9059d62c0bdd164311a270b (patch)
tree6678a398fc48625c096d414f7f890fb3656a13e0 /cli/lsp/tsc.rs
parentdf87bf1d6a43ca36b520b45913839fd1f16df595 (diff)
fix: pull .d.ts files from js mod (#8671)
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r--cli/lsp/tsc.rs8
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"),