efc1b7df08
* More thoroughly test navigateTo * Fix #25233 and #25237 * Update API (#24966)
14 lines
391 B
TypeScript
14 lines
391 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @noLib: true
|
|
|
|
////let [|c = 10|];
|
|
////function foo() {
|
|
//// let [|d = 10|];
|
|
////}
|
|
|
|
const [r0, r1] = test.ranges();
|
|
verify.navigateTo(
|
|
{ pattern: "c", expected: [{ name: "c", kind: "let", range: r0 }] },
|
|
{ pattern: "d", expected: [{ name: "d", kind: "let", range: r1, containerName: "foo", containerKind: "function" }] },
|
|
);
|