René's URL Explorer Experiment


Title: Cmd+click of JSX component shows type definition in VSCode, instead of linking to component definition · Issue #37816 · microsoft/TypeScript · GitHub

Open Graph Title: Cmd+click of JSX component shows type definition in VSCode, instead of linking to component definition · Issue #37816 · microsoft/TypeScript

X Title: Cmd+click of JSX component shows type definition in VSCode, instead of linking to component definition · Issue #37816 · microsoft/TypeScript

Description: As requested by Ryan Cavanaugh (@RyanCavanaugh) on issue #24809 - reopening the issue with an updated concrete way to reproduce. Tested with latest VSCode 1.43, latest typescript 3.8.3. Simply create a .tsx file in VSCode with the follow...

Open Graph Description: As requested by Ryan Cavanaugh (@RyanCavanaugh) on issue #24809 - reopening the issue with an updated concrete way to reproduce. Tested with latest VSCode 1.43, latest typescript 3.8.3. Simply crea...

X Description: As requested by Ryan Cavanaugh (@RyanCavanaugh) on issue #24809 - reopening the issue with an updated concrete way to reproduce. Tested with latest VSCode 1.43, latest typescript 3.8.3. Simply crea...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/37816

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cmd+click of JSX component shows type definition in VSCode, instead of linking to component definition","articleBody":"As requested by @RyanCavanaugh on issue #24809 - reopening the issue with an updated concrete way to reproduce.\r\n\r\nTested with latest VSCode `1.43`, latest typescript `3.8.3`.\r\n\r\nSimply create a `.tsx` file in VSCode with the following content:\r\n\r\n```tsx\r\nimport React from 'react'\r\n\r\nconst Thing: React.FC\u003c{ text: string }> = (props) => \u003cdiv>{props.text}\u003c/div>\r\n\r\nconst HelloWorld = () => \u003cThing text=\"hello world\" />\r\n```\r\n\r\nAnd cmd+click on `\u003cThing` on line 5\r\n\r\n**Expected behavior:**\r\n\r\nCursor moves to definition of `const Thing` on line 3.\r\n\r\n**Actual behavior:**\r\n\r\n![image](https://user-images.githubusercontent.com/9915841/78608510-f4ef4c80-7858-11ea-8848-4ca68ce4c650.png)\r\n\r\nVSCode opens a definitions window with links to 2 definitions: \r\n\r\n1. The component definition on line 3 (that I expected to be linked to)\r\n2. The definition for the **type** of the component: `React.FC`, in `node_modules/@types/react`.\r\n\r\n---\r\n\r\nThis seems like a bug. In practice it means navigating is broken for JSX components, as cmd+clicking to link doesn't work - you have to cmd+click then click on the code definition again in the definitions window.\r\n\r\nI am pretty sure that in the vast, vast majority of cases, when people cmd+click *on the JSX* for a component, they want to link to the component's definition and not the type. \r\n\r\nEven supposing people *did* want to do that, in some cases: \r\n1. Just *seeing* what the type is would be solved in one click, because it is there in the definition \r\n2. Navigating to that type definition if you really wanted to would remain at 2 clicks - by just cmd+clicking it right there in the definition.\r\n\r\nSo, there seems no downside here. Improve (fix) the most common usecase, less common (if ever) usecase still works, still 2 clicks.","author":{"url":"https://github.com/davnicwil","@type":"Person","name":"davnicwil"},"datePublished":"2020-04-06T22:04:47Z","url":"https://github.com/microsoft/TypeScript/issues/37816"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:57688d96-731c-acb3-091a-86d61cc96a53
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE3C8:296654:26D7CAE:33D0FCE:6B01AB4F
html-safe-noncea5986cc3051036a4aed702fcbda4da1cab7fd4ee30e7596b66112996cd4baf75
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0M4OjI5NjY1NDoyNkQ3Q0FFOjMzRDBGQ0U6NkIwMUFCNEYiLCJ2aXNpdG9yX2lkIjoiMTg4NzkwMzAxMTkwNTMxNzcxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac130ce349c9c51c91dd24e785d18373cd22565919fe9a42cb09a220709d6eb91f
hovercard-subject-tagissue:595457725
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/37816/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e54d22c33a7dc1f48ea68fb66eea637aebaf2b2c42a3bfd320ed7e72acb12917/microsoft/TypeScript/issues/37816
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e54d22c33a7dc1f48ea68fb66eea637aebaf2b2c42a3bfd320ed7e72acb12917/microsoft/TypeScript/issues/37816
og:image:altAs requested by Ryan Cavanaugh (@RyanCavanaugh) on issue #24809 - reopening the issue with an updated concrete way to reproduce. Tested with latest VSCode 1.43, latest typescript 3.8.3. Simply crea...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedavnicwil
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/37816#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F37816
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F37816
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/37816
Reloadhttps://github.com/microsoft/TypeScript/issues/37816
Reloadhttps://github.com/microsoft/TypeScript/issues/37816
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37816
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37816
#57969https://github.com/microsoft/TypeScript/pull/57969
Cmd+click of JSX component shows type definition in VSCode, instead of linking to component definitionhttps://github.com/microsoft/TypeScript/issues/37816#top
#57969https://github.com/microsoft/TypeScript/pull/57969
https://github.com/iisaduan
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/davnicwil
David Nicholas Williams (davnicwil)https://github.com/davnicwil
on Apr 6, 2020https://github.com/microsoft/TypeScript/issues/37816#issue-595457725
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
#24809https://github.com/microsoft/TypeScript/issues/24809
https://user-images.githubusercontent.com/9915841/78608510-f4ef4c80-7858-11ea-8848-4ca68ce4c650.png
Nexthttps://github.com/microsoft/TypeScript/issues/37816?timeline_page=1
https://github.com/nk1tz
Nate (nk1tz)https://github.com/nk1tz
on Apr 30, 2020https://github.com/microsoft/TypeScript/issues/37816#issuecomment-622019061
David Nicholas Williams (@davnicwil)https://github.com/davnicwil
https://github.com/davnicwil
David Nicholas Williams (davnicwil)https://github.com/davnicwil
on May 1, 2020https://github.com/microsoft/TypeScript/issues/37816#issuecomment-622342307
Nate (@nk1tz)https://github.com/nk1tz
https://github.com/JulianKingman
JulianKingmanhttps://github.com/JulianKingman
on May 1, 2020https://github.com/microsoft/TypeScript/issues/37816#issuecomment-622536910
https://github.com/davnicwil
David Nicholas Williams (davnicwil)https://github.com/davnicwil
on May 2, 2020https://github.com/microsoft/TypeScript/issues/37816#issuecomment-622925810
JulianKingmanhttps://github.com/JulianKingman
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Jun 1, 2020https://github.com/microsoft/TypeScript/issues/37816#event-3393665112
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Jun 1, 2020https://github.com/microsoft/TypeScript/issues/37816#event-3393665216
https://github.com/varemenos
Adonis Kakoulidis (varemenos)https://github.com/varemenos
on Sep 4, 2020https://github.com/microsoft/TypeScript/issues/37816#issuecomment-687091752
https://github.com/bcole808
Ben Cole (bcole808)https://github.com/bcole808
on Nov 2, 2020https://github.com/microsoft/TypeScript/issues/37816#issuecomment-720623308
https://github.com/sambecker
Sam Becker (sambecker)https://github.com/sambecker
on Nov 7, 2020https://github.com/microsoft/TypeScript/issues/37816#issuecomment-723383551
https://github.com/apeqqut
apeqquthttps://github.com/apeqqut
on Feb 12, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-778055296
Sam Becker (@sambecker)https://github.com/sambecker
https://github.com/Miaonster
Ding Yi (Miaonster)https://github.com/Miaonster
on Apr 4, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-813054890
vscode-tsx-arrow-definitionhttps://github.com/Miaonster/vscode-tsx-arrow-definition
https://github.com/mliq
Michael Liquori (mliq)https://github.com/mliq
on Apr 7, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-815095759
Sam Becker (@sambecker)https://github.com/sambecker
https://github.com/bcole808
Ben Cole (bcole808)https://github.com/bcole808
on Apr 7, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-815108030
Michael Liquori (@mliq)https://github.com/mliq
Ding Yi (@Miaonster)https://github.com/Miaonster
https://github.com/jake-crane
Jake Crane (jake-crane)https://github.com/jake-crane
on Apr 7, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-815132347
Sam Becker (@sambecker)https://github.com/sambecker
Ding Yi (@Miaonster)https://github.com/Miaonster
https://github.com/Miaonster
Ding Yi (Miaonster)https://github.com/Miaonster
on Apr 8, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-815406874
Ben Cole (@bcole808)https://github.com/bcole808
https://github.com/jodaka
Anton Kudris (jodaka)https://github.com/jodaka
on Apr 16, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-821101153
https://github.com/tim-mukhin
Tim Mukhin (tim-mukhin)https://github.com/tim-mukhin
on Apr 19, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-822398772
https://github.com/MaoScut
MaoScuthttps://github.com/MaoScut
on Apr 29, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-829122817
Sam Becker (@sambecker)https://github.com/sambecker
https://github.com/zaytri
Zaytri (zaytri)https://github.com/zaytri
on Oct 26, 2021https://github.com/microsoft/TypeScript/issues/37816#issuecomment-952385681
https://github.com/PaulMest
Paul Mestemaker (PaulMest)https://github.com/PaulMest
on Apr 20, 2023https://github.com/microsoft/TypeScript/issues/37816#issuecomment-1517051216
https://github.com/Miaonster/vscode-definition-filterhttps://github.com/Miaonster/vscode-definition-filter
https://github.com/etothepii
James Robinson (etothepii)https://github.com/etothepii
on Jan 9, 2024https://github.com/microsoft/TypeScript/issues/37816#issuecomment-1882983975
https://github.com/yard2010
Jordan Refaeli (yard2010)https://github.com/yard2010
on Mar 7, 2024https://github.com/microsoft/TypeScript/issues/37816#issuecomment-1983358319
https://github.com/piotrkulpinski
Piotr Kulpinski (piotrkulpinski)https://github.com/piotrkulpinski
on Mar 7, 2024https://github.com/microsoft/TypeScript/issues/37816#issuecomment-1983537785
https://github.com/bernatfortet
Bernat Fortet (bernatfortet)https://github.com/bernatfortet
on Mar 14, 2024https://github.com/microsoft/TypeScript/issues/37816#issuecomment-1996196856
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Isabel Duan (iisaduan)https://github.com/iisaduan
on Mar 15, 2024https://github.com/microsoft/TypeScript/issues/37816#event-12136837456
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Mar 27, 2024https://github.com/microsoft/TypeScript/issues/37816#event-12273383858
Isabel Duan (iisaduan)https://github.com/iisaduan
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#57969https://github.com/microsoft/TypeScript/pull/57969
on May 10, 2024https://github.com/microsoft/TypeScript/issues/37816#event-12773936655
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/37816#event-20416928333
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/37816
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37816
Isabel Duan (iisaduan)https://github.com/iisaduan
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.