From 98ef7bd8183f7fa534c3bfea8376d4c452b5d8d7 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 24 Sep 2023 18:00:15 +0100 Subject: fix(lsp): resolve remote import maps (#20651) --- cli/tests/testdata/import_maps/import_map.json | 1 + cli/tests/testdata/import_maps/print_hello.ts | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 cli/tests/testdata/import_maps/print_hello.ts (limited to 'cli/tests/testdata/import_maps') diff --git a/cli/tests/testdata/import_maps/import_map.json b/cli/tests/testdata/import_maps/import_map.json index 601874aab..40d1d4ec2 100644 --- a/cli/tests/testdata/import_maps/import_map.json +++ b/cli/tests/testdata/import_maps/import_map.json @@ -1,5 +1,6 @@ { "imports": { + "print_hello": "./print_hello.ts", "moment": "./moment/moment.ts", "moment/": "./moment/", "lodash": "./lodash/lodash.ts", diff --git a/cli/tests/testdata/import_maps/print_hello.ts b/cli/tests/testdata/import_maps/print_hello.ts new file mode 100644 index 000000000..794257390 --- /dev/null +++ b/cli/tests/testdata/import_maps/print_hello.ts @@ -0,0 +1,3 @@ +export function printHello() { + console.log("Hello, world!"); +} -- cgit v1.2.3