Implement LS on string-literal of dynamic import

This commit is contained in:
Kanchalai Tanglertsampan
2017-06-09 10:01:17 -07:00
parent cae1286b72
commit 2e55b6ae16
4 changed files with 28 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
/// <reference path='fourslash.ts' />
// @Filename: foo.ts
//// export function foo() { return "foo"; }
//// import("[|./foo|]")
//// var x = import("[|./foo|]")
verify.rangesReferenceEachOther();

View File

@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts' />
// @Filename: foo.ts
//// /*Destination*/export function foo() { return "foo"; }
//// import("./f/*1*/oo")
//// var x = import("./fo/*2*/o")
verify.goToDefinition("1", "Destination");
verify.goToDefinition("2", "Destination");