mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 00:36:29 -05:00
Implement LS on string-literal of dynamic import
This commit is contained in:
9
tests/cases/fourslash/findAllReferencesDynamicImport1.ts
Normal file
9
tests/cases/fourslash/findAllReferencesDynamicImport1.ts
Normal 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();
|
||||
10
tests/cases/fourslash/goToDefinitionDynamicImport1.ts
Normal file
10
tests/cases/fourslash/goToDefinitionDynamicImport1.ts
Normal 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");
|
||||
Reference in New Issue
Block a user