mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:41:22 -06:00
Add fourslash rename, find-all-reference on imported property
This commit is contained in:
parent
2e55b6ae16
commit
ff28bfa4aa
12
tests/cases/fourslash/findAllReferencesDynamicImport2.ts
Normal file
12
tests/cases/fourslash/findAllReferencesDynamicImport2.ts
Normal file
@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @Filename: foo.ts
|
||||
//// export function [|bar|]() { return "bar"; }
|
||||
|
||||
//// var x = import("./foo");
|
||||
//// x.then(foo => {
|
||||
//// foo.[|bar|]();
|
||||
//// })
|
||||
|
||||
verify.rangesReferenceEachOther();
|
||||
verify.rangesAreRenameLocations();
|
||||
11
tests/cases/fourslash/goToDefinitionDynamicImport2.ts
Normal file
11
tests/cases/fourslash/goToDefinitionDynamicImport2.ts
Normal file
@ -0,0 +1,11 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @Filename: foo.ts
|
||||
//// export function /*Desitnation*/bar() { return "bar"; }
|
||||
|
||||
//// var x = import("./foo");
|
||||
//// x.then(foo => {
|
||||
//// foo.b/*1*/ar();
|
||||
//// })
|
||||
|
||||
verify.goToDefinition("1", "Destination");
|
||||
Loading…
x
Reference in New Issue
Block a user