Add fourslash rename, find-all-reference on imported property

This commit is contained in:
Kanchalai Tanglertsampan 2017-06-09 10:40:52 -07:00
parent 2e55b6ae16
commit ff28bfa4aa
2 changed files with 23 additions and 0 deletions

View 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();

View 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");