René's URL Explorer Experiment


Title: VSCode shows unexpected problem on valid ts codes after v1.68.1 · Issue #50191 · microsoft/TypeScript · GitHub

Open Graph Title: VSCode shows unexpected problem on valid ts codes after v1.68.1 · Issue #50191 · microsoft/TypeScript

X Title: VSCode shows unexpected problem on valid ts codes after v1.68.1 · Issue #50191 · microsoft/TypeScript

Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.68.1, 1.69.2, 1.70.0 OS Version: Windows_NT x64 Steps to Reproduce: Create a new file, select the language as Typescript. Type in the code below: class A { s...

Open Graph Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.68.1, 1.69.2, 1.70.0 OS Version: Windows_NT x64 Steps to Reproduce: Create a new file, select the language as Typescr...

X Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.68.1, 1.69.2, 1.70.0 OS Version: Windows_NT x64 Steps to Reproduce: Create a new file, select the language as Typescr...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VSCode shows unexpected problem on valid ts codes after v1.68.1","articleBody":"\u003c!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->\r\n\u003c!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->\r\n\u003c!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->\r\n\u003c!-- 🔎 Search existing issues to avoid creating duplicates. -->\r\n\u003c!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->\r\n\u003c!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->\r\n\u003c!-- 🔧 Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes\r\n\r\n\u003c!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->\r\n\u003c!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->\r\n- VS Code Version: 1.68.1, 1.69.2, 1.70.0\r\n- OS Version: Windows_NT x64\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a new file, select the language as Typescript.\r\n2. Type in the code below:\r\n```ts\r\nclass A {\r\n    static Foo = class {}\r\n}\r\n\r\nclass AFoo extends A.Foo {}\r\n```\r\n\r\nThis is valid typescript, and it works OK in v1.67.2 and prior versions.\r\nHowever, in v1.68.1 and newer(tested in 1.68.1, 1.69.2, 1.70.0), the editor shows two unexpected problems: \r\n`Cannot find name 'A'.ts(2304)`\r\n`'A' only refers to a type, but is being used as a namespace here.ts(2702)`\r\n\r\nScreenshots for comparison:\r\n1.67.2\r\n![1](https://user-images.githubusercontent.com/6128692/182934564-90b465eb-b59d-4555-af8f-dd53031c829f.png)\r\n\r\n1.68.1\r\n![2](https://user-images.githubusercontent.com/6128692/182934576-7f4e64ff-3d09-4538-b364-6b573684bf9f.png)\r\n\r\n\r\n\r\nNotice that this code works OK in [Typescript Playground v4.7.3](https://www.typescriptlang.org/play?ts=4.7.3#code/MYGwhgzhAECC0G8CwAoa7oQC5iwS2GgDEB7E6AXmlEhgQF9VGVUapoAhaAUwA8tuAOwAmMWADpS5BkA) (which is bundled by VSCode v1.68.1), so I suppose it may be caused by vscode itself rather than the tsserver.\r\n\r\n\r\n---\r\n(updated 2022.9.4) Add two similar cases:\r\n```ts\r\nconst B = {\r\n    Foo: class { }    \r\n}\r\n\r\nnamespace C {\r\n    export class Foo { }\r\n}\r\n\r\nclass BFoo extends B.Foo {\r\n                // ^ error here, expect no error\r\n}\r\nclass CFoo extends C.Foo {\r\n                // ^ no error as expected\r\n}\r\n```\r\n\r\n","author":{"url":"https://github.com/whzx5byb","@type":"Person","name":"whzx5byb"},"datePublished":"2022-08-04T19:16:36Z","url":"https://github.com/microsoft/TypeScript/issues/50191"}

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:9791e63c-5017-c608-6327-1d4d3ad15ec0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id891E:1D86C4:251BDD5:2F20A47:6B018AFF
html-safe-noncebaab5f335d369b9708205e03c06d889da72fa401a9dc7671b4a938fb4d493593
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTFFOjFEODZDNDoyNTFCREQ1OjJGMjBBNDc6NkIwMThBRkYiLCJ2aXNpdG9yX2lkIjoiMTc3MDM1MTI4NjAyMjE0NjgxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9a98bc9bcc1af1e046f9a6d01a1cb5c7ec5ac37a194a88c40af18cd2ce266fe7
hovercard-subject-tagissue:1329138588
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/50191/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8b20d182ce47b52685f332b7a4379af68c0461c4761a7575fd1b9addbba71282/microsoft/TypeScript/issues/50191
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8b20d182ce47b52685f332b7a4379af68c0461c4761a7575fd1b9addbba71282/microsoft/TypeScript/issues/50191
og:image:altDoes this issue occur when all extensions are disabled?: Yes VS Code Version: 1.68.1, 1.69.2, 1.70.0 OS Version: Windows_NT x64 Steps to Reproduce: Create a new file, select the language as Typescr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewhzx5byb
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/50191#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F50191
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%2F50191
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/50191
Reloadhttps://github.com/microsoft/TypeScript/issues/50191
Reloadhttps://github.com/microsoft/TypeScript/issues/50191
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/50191
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/50191
VSCode shows unexpected problem on valid ts codes after v1.68.1https://github.com/microsoft/TypeScript/issues/50191#top
https://github.com/navya9singh
7.0 LS Migrationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%227.0%20LS%20Migration%22
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: LS: TSServerIssues related to the TSServerhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20TSServer%22
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
https://github.com/whzx5byb
whzx5bybhttps://github.com/whzx5byb
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#issue-1329138588
https://user-images.githubusercontent.com/6128692/182934564-90b465eb-b59d-4555-af8f-dd53031c829f.png
https://user-images.githubusercontent.com/6128692/182934576-7f4e64ff-3d09-4538-b364-6b573684bf9f.png
Typescript Playground v4.7.3https://www.typescriptlang.org/play?ts=4.7.3#code/MYGwhgzhAECC0G8CwAoa7oQC5iwS2GgDEB7E6AXmlEhgQF9VGVUapoAhaAUwA8tuAOwAmMWADpS5BkA
https://github.com/vscodenpa
VS Code Bot (vscodenpa)https://github.com/vscodenpa
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#issuecomment-1205730649
VS Code Bot (vscodenpa)https://github.com/vscodenpa
Matt Bierner (mjbvz)https://github.com/mjbvz
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#event-7131219111
Matt Bierner (mjbvz)https://github.com/mjbvz
microsoft/vscodehttps://github.com/microsoft/vscode
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#event-7131219161
Matt Bierner (mjbvz)https://github.com/mjbvz
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#event-7131219627
https://github.com/mjbvz
Matt Bierner (mjbvz)https://github.com/mjbvz
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#issuecomment-1205731829
#50161https://github.com/microsoft/TypeScript/issues/50161
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#event-7131557171
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
navya9singhhttps://github.com/navya9singh
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#event-7131557648
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.9.0https://github.com/microsoft/TypeScript/milestone/169
on Aug 4, 2022https://github.com/microsoft/TypeScript/issues/50191#event-7131557749
https://github.com/BalaM314
BalaM314https://github.com/BalaM314
on Aug 11, 2022https://github.com/microsoft/TypeScript/issues/50191#issuecomment-1212045950
herehttps://www.typescriptlang.org/play?ts=4.7.4#code/MYGwhgzhAEBiD29oG8CwAoAkAZQK4CNRIYBeaIqaPQ8StLTDTAXw1fQwpgCEwAnaAFMAHgBdBAOwAmMBEno4CXaGWUBheBIBuggJ7w+3XAEsQUoWMky4iAHQAHPvFHPd9wberKFTdsyA
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
on Feb 1, 2023https://github.com/microsoft/TypeScript/issues/50191#event-8413728139
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.9.0https://github.com/microsoft/TypeScript/milestone/169
TypeScript 5.1.0https://github.com/microsoft/TypeScript/milestone/178
on Feb 1, 2023https://github.com/microsoft/TypeScript/issues/50191#event-8413735461
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.1.0https://github.com/microsoft/TypeScript/milestone/178
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
on Mar 4, 2024https://github.com/microsoft/TypeScript/issues/50191#event-12004920975
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
on Jul 26, 2024https://github.com/microsoft/TypeScript/issues/50191#event-13666301121
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Domain: LS: TSServerIssues related to the TSServerhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20TSServer%22
on Oct 16, 2025https://github.com/microsoft/TypeScript/issues/50191#event-20330952114
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/50191#event-21318124211
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/50191#event-21319498706
microsofthttps://github.com/microsoft
on Dec 3, 2025https://github.com/microsoft/TypeScript/issues/50191#event-21319498938
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Dec 3, 2025https://github.com/microsoft/TypeScript/issues/50191#issuecomment-3604514147
#62827https://github.com/microsoft/TypeScript/issues/62827
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/50191
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/50191
navya9singhhttps://github.com/navya9singh
7.0 LS Migrationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%227.0%20LS%20Migration%22
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: LS: TSServerIssues related to the TSServerhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20TSServer%22
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
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.