efc1b7df08
* More thoroughly test navigateTo * Fix #25233 and #25237 * Update API (#24966)
14 lines
569 B
TypeScript
14 lines
569 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @Filename: library.ts
|
|
////[|export function foo() {}|]
|
|
////[|export function bar() {}|]
|
|
// @Filename: user.ts
|
|
////import {foo, [|bar as baz|]} from './library';
|
|
|
|
const [r0, r1, r2] = test.ranges();
|
|
verify.navigateTo(
|
|
{ pattern: "foo", expected: [{ name: "foo", kind: "function", kindModifiers: "export", range: r0 }] },
|
|
{ pattern: "bar", expected: [{ name: "bar", kind: "function", kindModifiers: "export", range: r1 }] },
|
|
{ pattern: "baz", expected: [{ name: "baz", kind: "alias", range: r2 }] },
|
|
);
|