efc1b7df08
* More thoroughly test navigateTo * Fix #25233 and #25237 * Update API (#24966)
18 lines
485 B
TypeScript
18 lines
485 B
TypeScript
///<reference path="fourslash.ts" />
|
|
|
|
// @Filename: /a.ts
|
|
////
|
|
|
|
verify.navigateTo({ pattern: "", expected: [] });
|
|
edit.insert("/**\n * @typedef {Object} foo\n * @property {any} [obj]\n */\nexport default function foo() {\n}");
|
|
verify.navigateTo({
|
|
pattern: "foo",
|
|
expected: [
|
|
{
|
|
name: "foo",
|
|
kind: "function",
|
|
kindModifiers: "export",
|
|
range: { fileName: "/a.ts", pos: 58, end: 91 },
|
|
},
|
|
],
|
|
});
|