pmizio / typescript-tools.nvim

⚡ TypeScript integration NeoVim deserves ⚡
MIT License
1.26k stars 36 forks source link

code_lens references not working on function declarations #253

Open Gnarus-G opened 3 months ago

Gnarus-G commented 3 months ago

I intend to reopen issue #184 with this.

I found the problem is with function declarations.

// Will not show references
export function Testing() {
  return <div>{null}</div>;
}

// Will show references
export const Testing2 = () => {
  return <div>{null}</div>;
};