René's URL Explorer Experiment


Title: fix autoimports crash: generate namespace and other module symbol imports by iisaduan · Pull Request #60333 · microsoft/TypeScript · GitHub

Open Graph Title: fix autoimports crash: generate namespace and other module symbol imports by iisaduan · Pull Request #60333 · microsoft/TypeScript

X Title: fix autoimports crash: generate namespace and other module symbol imports by iisaduan · Pull Request #60333 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - fix autoimports crash: generate namespace and other module symbol imports by iisaduan · Pull Request #60333 · microsoft/TypeScript

Open Graph Description: MoveToFile, MoveToNewFile, PasteEdits, and related refactors would crash due to autoimports being unable to resolve where module symbols should be imported from. This PR adds an importAdder functio...

X Description: MoveToFile, MoveToNewFile, PasteEdits, and related refactors would crash due to autoimports being unable to resolve where module symbols should be imported from. This PR adds an importAdder functio...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/60333

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7191afcc-2e20-9ab7-e8a5-8e96afb150ba
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id827C:32CCF0:8A1272:C673FB:6A5F771F
html-safe-nonce4982c77e23e212e3c949302fa87d3c402694b6b7d11531fceb8e0925ce1fb8cc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjdDOjMyQ0NGMDo4QTEyNzI6QzY3M0ZCOjZBNUY3NzFGIiwidmlzaXRvcl9pZCI6IjgxOTEzNTczNTk1MTgzNDkwODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac28d570970ed2ca48e94ce8bfc998e94d5ebffdf35405d6f8fe8d817d9ade3efd
hovercard-subject-tagpull_request:2142319807
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/60333/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1cdef2f35693950e9f65553ef651e1f9464d50d1b365bcdad4674a7149b33931/microsoft/TypeScript/pull/60333
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1cdef2f35693950e9f65553ef651e1f9464d50d1b365bcdad4674a7149b33931/microsoft/TypeScript/pull/60333
og:image:altMoveToFile, MoveToNewFile, PasteEdits, and related refactors would crash due to autoimports being unable to resolve where module symbols should be imported from. This PR adds an importAdder functio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiisaduan
hostnamegithub.com
expected-hostnamegithub.com
None452de97a03b38f04f76083e607149d32906d2c0b7b8eefeb40f6abb19033123d
turbo-cache-controlno-cache
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
release04b6e0d7b342a002446f33418e84ead364c16c2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/60333#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F60333
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F60333
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/60333
Reloadhttps://github.com/microsoft/TypeScript/pull/60333
Reloadhttps://github.com/microsoft/TypeScript/pull/60333
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 29 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
iisaduanhttps://github.com/iisaduan
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
iisaduan:moveToFile-generateModuleImporthttps://github.com/iisaduan/TypeScript/tree/moveToFile-generateModuleImport
Conversationhttps://github.com/microsoft/TypeScript/pull/60333
Commits8 (8)https://github.com/microsoft/TypeScript/pull/60333/commits
Checkshttps://github.com/microsoft/TypeScript/pull/60333/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/60333/files
fix autoimports crash: generate namespace and other module symbol imports https://github.com/microsoft/TypeScript/pull/60333#top
iisaduanhttps://github.com/iisaduan
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
iisaduan:moveToFile-generateModuleImporthttps://github.com/iisaduan/TypeScript/tree/moveToFile-generateModuleImport
https://github.com/iisaduan
iisaduanhttps://github.com/iisaduan
Oct 23, 2024https://github.com/microsoft/TypeScript/pull/60333#issue-2610065620
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
#58740https://github.com/microsoft/TypeScript/issues/58740
#59240 (comment)https://github.com/microsoft/TypeScript/issues/59240#issuecomment-2224079385
#59284https://github.com/microsoft/TypeScript/issues/59284
#59650https://github.com/microsoft/TypeScript/issues/59650
#59651https://github.com/microsoft/TypeScript/issues/59651
#59701https://github.com/microsoft/TypeScript/issues/59701
#59747https://github.com/microsoft/TypeScript/issues/59747
#58897https://github.com/microsoft/TypeScript/issues/58897
#59004https://github.com/microsoft/TypeScript/pull/59004
#59447https://github.com/microsoft/TypeScript/pull/59447
#60302https://github.com/microsoft/TypeScript/pull/60302
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
iisaduanhttps://github.com/iisaduan
October 14, 2024 15:55https://github.com/microsoft/TypeScript/pull/60333#commits-pushed-616c423
https://github.com/iisaduan
fix moveToNewFIlehttps://github.com/microsoft/TypeScript/pull/60333/commits/616c423e41c70e61eef45c1a423aa1dd2cc2231d
616c423https://github.com/microsoft/TypeScript/pull/60333/commits/616c423e41c70e61eef45c1a423aa1dd2cc2231d
https://github.com/iisaduan
Merge branch 'main' ofhttps://github.com/microsoft/TypeScript/pull/60333/commits/12618007cfe35e536fc83b398b236629db8f751c
https://github.com/microsoft/TypeScripthttps://github.com/microsoft/TypeScript
into m…https://github.com/microsoft/TypeScript/pull/60333/commits/12618007cfe35e536fc83b398b236629db8f751c
1261800https://github.com/microsoft/TypeScript/pull/60333/commits/12618007cfe35e536fc83b398b236629db8f751c
https://github.com/iisaduan
paste edits server testshttps://github.com/microsoft/TypeScript/pull/60333/commits/1c1a88e8cc8432f10d1b64399d0c124b210ba5ff
1c1a88ehttps://github.com/microsoft/TypeScript/pull/60333/commits/1c1a88e8cc8432f10d1b64399d0c124b210ba5ff
https://github.com/iisaduan
fix commentshttps://github.com/microsoft/TypeScript/pull/60333/commits/03ffc581f45ff33c14e97a9557b36d3783279058
03ffc58https://github.com/microsoft/TypeScript/pull/60333/commits/03ffc581f45ff33c14e97a9557b36d3783279058
https://github.com/iisaduan
add testhttps://github.com/microsoft/TypeScript/pull/60333/commits/90e89e65ef92a7694cfe10138740fa5eee947b7e
90e89e6https://github.com/microsoft/TypeScript/pull/60333/commits/90e89e65ef92a7694cfe10138740fa5eee947b7e
https://github.com/iisaduan
add testhttps://github.com/microsoft/TypeScript/pull/60333/commits/3ca07d106ad8f525fb690046a58efa6886807cb3
3ca07d1https://github.com/microsoft/TypeScript/pull/60333/commits/3ca07d106ad8f525fb690046a58efa6886807cb3
https://github.com/iisaduan
use exportinfohttps://github.com/microsoft/TypeScript/pull/60333/commits/a20c2bb8d3480dc9cc23b892399a88e8573c6864
a20c2bbhttps://github.com/microsoft/TypeScript/pull/60333/commits/a20c2bb8d3480dc9cc23b892399a88e8573c6864
https://github.com/iisaduan
iisaduanhttps://github.com/iisaduan
andrewbranchhttps://github.com/andrewbranch
navya9singhhttps://github.com/navya9singh
October 23, 2024 23:55https://github.com/microsoft/TypeScript/pull/60333#event-14834079844
refactor: New file generates import from wrong module specifier #58897 https://github.com/microsoft/TypeScript/issues/58897
TS Server Error Debug Failure when moving to a js file #59240 https://github.com/microsoft/TypeScript/issues/59240
https://github.com/navya9singh
navya9singhhttps://github.com/navya9singh
Oct 24, 2024 https://github.com/microsoft/TypeScript/pull/60333#pullrequestreview-2393578669
View reviewed changes https://github.com/microsoft/TypeScript/pull/60333/files/a20c2bb8d3480dc9cc23b892399a88e8573c6864
src/services/refactors/helpers.tshttps://github.com/microsoft/TypeScript/pull/60333/files/a20c2bb8d3480dc9cc23b892399a88e8573c6864#diff-abd97751406b5a792f969a9a42c7658e33a46ab25cd6b79eb4b7bf19bc4c76e5
navya9singhhttps://github.com/navya9singh
Oct 24, 2024https://github.com/microsoft/TypeScript/pull/60333#discussion_r1815615584
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
iisaduanhttps://github.com/iisaduan
Oct 24, 2024https://github.com/microsoft/TypeScript/pull/60333#discussion_r1815707870
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
iisaduanhttps://github.com/iisaduan
Oct 24, 2024https://github.com/microsoft/TypeScript/pull/60333#discussion_r1815715248
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
https://github.com/navya9singh
navya9singhhttps://github.com/navya9singh
Oct 24, 2024 https://github.com/microsoft/TypeScript/pull/60333#pullrequestreview-2393582307
View reviewed changes https://github.com/microsoft/TypeScript/pull/60333/files/a20c2bb8d3480dc9cc23b892399a88e8573c6864
tests/cases/fourslash/server/pasteEdits_namespaceImport.tshttps://github.com/microsoft/TypeScript/pull/60333/files/a20c2bb8d3480dc9cc23b892399a88e8573c6864#diff-34d858d1b4f5d4a1e0572d4b92967f89ee4f0cd29a67b500f9747987ccb90234
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
https://github.com/iisaduan
fix testhttps://github.com/microsoft/TypeScript/pull/60333/commits/21a65986e2e01431c4d4bfaa7194bf79b6546736
21a6598https://github.com/microsoft/TypeScript/pull/60333/commits/21a65986e2e01431c4d4bfaa7194bf79b6546736
https://github.com/andrewbranch
andrewbranchhttps://github.com/andrewbranch
Oct 31, 2024 https://github.com/microsoft/TypeScript/pull/60333#pullrequestreview-2409263898
View reviewed changes https://github.com/microsoft/TypeScript/pull/60333/files/21a65986e2e01431c4d4bfaa7194bf79b6546736
src/services/codefixes/importFixes.tshttps://github.com/microsoft/TypeScript/pull/60333/files/21a65986e2e01431c4d4bfaa7194bf79b6546736#diff-5028f517f8a294750ab440acf45a4845b9ae4e0e2f58293808d15adc469bbe23
andrewbranchhttps://github.com/andrewbranch
Oct 31, 2024https://github.com/microsoft/TypeScript/pull/60333#discussion_r1825286724
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
iisaduanhttps://github.com/iisaduan
Nov 1, 2024https://github.com/microsoft/TypeScript/pull/60333#discussion_r1825293407
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#60333 (comment)https://github.com/microsoft/TypeScript/pull/60333#issue-2610065620
#59240 (comment)https://github.com/microsoft/TypeScript/issues/59240#issuecomment-2224079385
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
https://github.com/iisaduan
iisaduanhttps://github.com/iisaduan
3e61718https://github.com/microsoft/TypeScript/commit/3e6171833e6d8481626b56a7de09ea03092fadf2
Nov 1, 2024https://github.com/microsoft/TypeScript/pull/60333#event-15051202017
https://github.com/iisaduan
iisaduanhttps://github.com/iisaduan
November 1, 2024 00:03https://github.com/microsoft/TypeScript/pull/60333#event-15051203631
https://github.com/CGNonofr
CGNonofrhttps://github.com/CGNonofr
Nov 4, 2024 https://github.com/microsoft/TypeScript/pull/60333#ref-issue-2632506917
"Move to a new file" refactor was recently broken for some import names #60408 https://github.com/microsoft/TypeScript/issues/60408
https://github.com/nayeemrmn
nayeemrmnhttps://github.com/nayeemrmn
Jan 22, 2025 https://github.com/microsoft/TypeScript/pull/60333#ref-pullrequest-2804796540
fix(lsp): silence debug error for 'move to a new file' action denoland/deno#27780 https://github.com/denoland/deno/pull/27780
https://github.com/sandersn
sandersnhttps://github.com/sandersn
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Apr 22, 2025https://github.com/microsoft/TypeScript/pull/60333#event-17355457206
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 16, 2025https://github.com/microsoft/TypeScript/pull/60333#event-20309761632
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F60333
https://github.com/navya9singh
navya9singh https://github.com/navya9singh
https://github.com/microsoft/TypeScript/pull/60333/files/a20c2bb8d3480dc9cc23b892399a88e8573c6864
https://github.com/andrewbranch
andrewbranch https://github.com/andrewbranch
https://github.com/microsoft/TypeScript/pull/60333/files/21a65986e2e01431c4d4bfaa7194bf79b6546736
typescript Move to a new file doesn't work when namespace import react https://github.com/microsoft/TypeScript/issues/59651
Refactor: move to new file does not work https://github.com/microsoft/TypeScript/issues/59650
TS error moving a function to another file https://github.com/microsoft/TypeScript/issues/59284
TS Server Error Debug Failure when moving to a js file https://github.com/microsoft/TypeScript/issues/59240
Debug failure on paste with imports https://github.com/microsoft/TypeScript/issues/58740
Assertion failure when move-to-file code contains entities from ambient module https://github.com/microsoft/TypeScript/issues/59701
Cannot Move React Class Component To New File https://github.com/microsoft/TypeScript/issues/59747
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60333
https://github.com/iisaduan
https://github.com/andrewbranch
https://github.com/navya9singh
https://github.com/sandersn
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.