René's URL Explorer Experiment


Title: autocomplete workaround for string literal inside template literal stopped working since `v5.3.3` · Issue #57902 · microsoft/TypeScript · GitHub

Open Graph Title: autocomplete workaround for string literal inside template literal stopped working since `v5.3.3` · Issue #57902 · microsoft/TypeScript

X Title: autocomplete workaround for string literal inside template literal stopped working since `v5.3.3` · Issue #57902 · microsoft/TypeScript

Description: 🔎 Search Terms string literal autocomplete template 🕗 Version & Regression Information This changed between versions 5.3.2 and 5.3.3 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.3.3#code/C4TwDgpgBAYg9nKBeKByA9AMwaqAfNLBdALg...

Open Graph Description: 🔎 Search Terms string literal autocomplete template 🕗 Version & Regression Information This changed between versions 5.3.2 and 5.3.3 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.3.3#c...

X Description: 🔎 Search Terms string literal autocomplete template 🕗 Version & Regression Information This changed between versions 5.3.2 and 5.3.3 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.3...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"autocomplete workaround for string literal inside template literal stopped working since `v5.3.3`","articleBody":"### 🔎 Search Terms\n\nstring literal autocomplete template\n\n### 🕗 Version & Regression Information\n\n- This changed between versions 5.3.2 and 5.3.3\r\n\r\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play?ts=5.3.3#code/C4TwDgpgBAYg9nKBeKByA9AMwaqAfNLBdALgEsATXAgAyLnQBIBvAZ2ACcyA7AcygBkUZgF8RNAFASAxnG7soAIwCGHEvEQpUqIA\n\n### 💻 Code\n\n```ts\r\ntype Foo = '/foo' | '/foo/:id' | `/foo/${string & {}}`\r\n\r\nconst bar:Foo = ''\r\n```\r\n\n\n### 🙁 Actual behavior\n\n`bar` **only** gives `/foo` as a suggestion.\n\n### 🙂 Expected behavior\n\n`bar` gives `/foo` and `/foo/:id` as a suggestion.\n\n### Additional information about the issue\n\nI understand that the autocomplete is a longer ongoing issue in combination with string literals. However there was a workaround described in (among other places): https://github.com/microsoft/TypeScript/issues/29729\r\n\r\nThis workaround (`string & {}`) still works as long as it is not inside a template literal. But stopped working inside a template literal since `v5.3.3`. \r\n","author":{"url":"https://github.com/GrtDev","@type":"Person","name":"GrtDev"},"datePublished":"2024-03-22T11:06:38Z","url":"https://github.com/microsoft/TypeScript/issues/57902"}

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:0b30092c-00f7-8ae5-1de1-221dce3814f5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE918:3DD488:209B106:295FA5E:6B0173FC
html-safe-nonceeb158bfb663c8d74fb7ad8de3c8f2de8ceb62a9b4085990a52b7cc69b4420b92
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTE4OjNERDQ4ODoyMDlCMTA2OjI5NUZBNUU6NkIwMTczRkMiLCJ2aXNpdG9yX2lkIjoiODY2Mzk4MDkyMDg5OTk5MDUyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace80978f8e0250826e92e9c03e16f2dd6521432a3d4587361a21493788f68b127
hovercard-subject-tagissue:2202248244
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/57902/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e4e1e38c15fe2010da2a1731d05e04cddee7e56d917c2181d429278635397d42/microsoft/TypeScript/issues/57902
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e4e1e38c15fe2010da2a1731d05e04cddee7e56d917c2181d429278635397d42/microsoft/TypeScript/issues/57902
og:image:alt🔎 Search Terms string literal autocomplete template 🕗 Version & Regression Information This changed between versions 5.3.2 and 5.3.3 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.3.3#c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGrtDev
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/57902#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F57902
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%2F57902
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/57902
Reloadhttps://github.com/microsoft/TypeScript/issues/57902
Reloadhttps://github.com/microsoft/TypeScript/issues/57902
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/57902
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/57902
autocomplete workaround for string literal inside template literal stopped working since v5.3.3https://github.com/microsoft/TypeScript/issues/57902#top
7.0 LS Migrationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%227.0%20LS%20Migration%22
Cursed?It's likely this is extremely difficult to fix without making something else much, much worsehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Cursed%3F%22
Domain: LS: Completion ListsThe issue relates to showing completion lists in an editorhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Completion%20Lists%22
Possible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some caseshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Possible%20Improvement%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/GrtDev
Geert Fokke (GrtDev)https://github.com/GrtDev
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#issue-2202248244
https://www.typescriptlang.org/play?ts=5.3.3#code/C4TwDgpgBAYg9nKBeKByA9AMwaqAfNLBdALgEsATXAgAyLnQBIBvAZ2ACcyA7AcygBkUZgF8RNAFASAxnG7soAIwCGHEvEQpUqIAhttps://www.typescriptlang.org/play?ts=5.3.3#code/C4TwDgpgBAYg9nKBeKByA9AMwaqAfNLBdALgEsATXAgAyLnQBIBvAZ2ACcyA7AcygBkUZgF8RNAFASAxnG7soAIwCGHEvEQpUqIA
#29729https://github.com/microsoft/TypeScript/issues/29729
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2015185822
#56434https://github.com/microsoft/TypeScript/pull/56434
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2015567264
https://private-user-images.githubusercontent.com/5341706/316115025-8328d1f4-4ab5-4a8b-85fe-8476304f2b39.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNTc2NDAsIm5iZiI6MTc5NTI1NzM0MCwicGF0aCI6Ii81MzQxNzA2LzMxNjExNTAyNS04MzI4ZDFmNC00YWI1LTRhOGItODVmZS04NDc2MzA0ZjJiMzkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjFUMTAzNTQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjBkNmQ3YzY4ZGJhNThkZWNjYjI0MGQxMTIzZWIwMDE1NzZlZDkzMGExNDg4OWUwNWFiMTFhMzRiNjMxZDUwNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.fR9Fok2n8eHEqltsqvwBiHc2ToLGsyCtlo93is673i4
#54188https://github.com/microsoft/TypeScript/pull/54188
#56434https://github.com/microsoft/TypeScript/pull/56434
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Domain: LS: Completion ListsThe issue relates to showing completion lists in an editorhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Completion%20Lists%22
Possible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some caseshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Possible%20Improvement%22
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#event-12221993307
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#event-12221993606
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Help Wantedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Help%20Wanted%22
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#event-12221994219
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2016079975
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2016088202
#56434https://github.com/microsoft/TypeScript/pull/56434
#56450https://github.com/microsoft/TypeScript/issues/56450
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2016110888
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2016112778
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Cursed?It's likely this is extremely difficult to fix without making something else much, much worsehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Cursed%3F%22
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#event-12222124395
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2016116391
https://github.com/TkDodo
Dominik Dorfmeister 🔮 (TkDodo)https://github.com/TkDodo
on Jan 24, 2025https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2612405516
https://www.typescriptlang.org/play/?ts=5.7.3#code/C4TwDgpgBAYg9nKBeKByA9AMwaqAfNLBdALgEsATXAgCgAMi50ASAbwGdgAnMgOwHMAvnSgAyKK0EBKAFAyAxnF6coAIwCGXErATI0qIAhttps://www.typescriptlang.org/play/?ts=5.7.3#code/C4TwDgpgBAYg9nKBeKByA9AMwaqAfNLBdALgEsATXAgCgAMi50ASAbwGdgAnMgOwHMAvnSgAyKK0EBKAFAyAxnF6coAIwCGXErATI0qIA
https://private-user-images.githubusercontent.com/1021430/406433816-a4e27879-7adf-4522-b64b-5bddec3b1bd1.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNTc2NDAsIm5iZiI6MTc5NTI1NzM0MCwicGF0aCI6Ii8xMDIxNDMwLzQwNjQzMzgxNi1hNGUyNzg3OS03YWRmLTQ1MjItYjY0Yi01YmRkZWMzYjFiZDEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjFUMTAzNTQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDFjMDZhNWFiOTlkY2QzMmFhNGJiYzVhMDQyOTM5NjQ4ZGI2NTNjZDZiZWQwZTZiMDJiMGM1Y2UzZDMwMGVjYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.55clFFli0TJwgI-U4BfipGp7L75eaHH4OcRyYyFeH-Q
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Jan 24, 2025https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2612437928
https://github.com/TkDodo
Dominik Dorfmeister 🔮 (TkDodo)https://github.com/TkDodo
on Jan 24, 2025https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2612510818
playgroundhttps://www.typescriptlang.org/play/?ts=5.7.3#code/C4TwDgpgBAYg9nKBeKByA9AMwe1UA+UABugEYCGATugCQDeAzsJQJYB2A5gL7pEHFlyAL1qNm7br35NWnKADIodLgCgVAYzhsmUCpQBcsBMjSogA
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Jan 24, 2025https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2612689517
#59794https://github.com/microsoft/TypeScript/pull/59794
https://github.com/datner
Datner (datner)https://github.com/datner
on Feb 6, 2025https://github.com/microsoft/TypeScript/issues/57902#issuecomment-2638355560
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
7.0 LS Migrationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%227.0%20LS%20Migration%22
on Dec 2, 2025https://github.com/microsoft/TypeScript/issues/57902#event-21317989651
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Dec 3, 2025https://github.com/microsoft/TypeScript/issues/57902#issuecomment-3604493655
#62827https://github.com/microsoft/TypeScript/issues/62827
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
not plannedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Dec 3, 2025https://github.com/microsoft/TypeScript/issues/57902#event-21319508881
microsofthttps://github.com/microsoft
on Dec 3, 2025https://github.com/microsoft/TypeScript/issues/57902#event-21319509283
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/57902
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/57902
7.0 LS Migrationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%227.0%20LS%20Migration%22
Cursed?It's likely this is extremely difficult to fix without making something else much, much worsehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Cursed%3F%22
Domain: LS: Completion ListsThe issue relates to showing completion lists in an editorhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Completion%20Lists%22
Possible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some caseshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Possible%20Improvement%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.