### Initial checklist - [x] I read the [support docs](https://mdxjs.com/community/support/) - [x] I read the [contributing guide](https://mdxjs.com/community/contribute/) - [x] I agree to follow the [code of conduct](https://github.com/mdx-js/.github/blob/main/code-of-conduct.md) - [x] I searched [issues](https://github.com/search?q=user%3Amdx-js&type=issues) and [discussions](https://github.com/orgs/mdx-js/discussions) and couldn’t find anything (or linked relevant results below) ### Affected package typescript@~5.8.3 ### Steps to reproduce minimal reproduction repo: https://github.com/issues-repros/vscode-mdx-repro 1. write following file ```ts const curry2 = () => () => {} const curry1 = curry2() export const foo = curry1() ``` attempt to `go to definition` on `foo`. ### Actual behavior https://github.com/user-attachments/assets/658f7009-dedf-4230-ade7-b91421a85cfb cursor moves to `const curry2 = () => <<() => {}>>` with MDX extension enabled ### Expected behavior https://github.com/user-attachments/assets/a7aec6ce-4c28-4b20-9417-1b8ab9393e37 cursor correctly moves to `<<const curry1 = curry2()>>` (default behavior on vscode typescript extension) ### Runtime node@23.3.0 ### Package manager npm@10.9.0 ### Operating system macOS Sequoia 15.4.1 arm64 ### Build and bundle tools Vite
Initial checklist
Affected package
typescript@~5.8.3
Steps to reproduce
minimal reproduction repo: https://github.com/issues-repros/vscode-mdx-repro
attempt to
go to definitiononfoo.Actual behavior
with-mdx.mp4
cursor moves to
const curry2 = () => <<() => {}>>with MDX extension enabledExpected behavior
without-mdx.mp4
cursor correctly moves to
<<const curry1 = curry2()>>(default behavior on vscode typescript extension)Runtime
node@23.3.0
Package manager
npm@10.9.0
Operating system
macOS Sequoia 15.4.1 arm64
Build and bundle tools
Vite