René's URL Explorer Experiment


Title: TypeScript 5.4 import path completion results in unintended paths · Issue #58034 · microsoft/TypeScript · GitHub

Open Graph Title: TypeScript 5.4 import path completion results in unintended paths · Issue #58034 · microsoft/TypeScript

X Title: TypeScript 5.4 import path completion results in unintended paths · Issue #58034 · microsoft/TypeScript

Description: Type: Bug After upgrading TypeScript to 5.4, import path completion did changed its behavior in my project. TypeScript 5.3 import { foo } from './myModule' TypeScript 5.4 import { foo } from 'path/to/myModule' The project defines its bas...

Open Graph Description: Type: Bug After upgrading TypeScript to 5.4, import path completion did changed its behavior in my project. TypeScript 5.3 import { foo } from './myModule' TypeScript 5.4 import { foo } from 'path/...

X Description: Type: Bug After upgrading TypeScript to 5.4, import path completion did changed its behavior in my project. TypeScript 5.3 import { foo } from './myModule' TypeScript 5.4 import { foo } fro...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeScript 5.4 import path completion results in unintended paths","articleBody":"Type: \u003cb\u003eBug\u003c/b\u003e\r\n\r\nAfter upgrading TypeScript to 5.4, import path completion did changed its behavior in my project.\r\n\r\nTypeScript 5.3\r\n\r\n```\r\nimport { foo } from './myModule'\r\n```\r\n\r\nTypeScript 5.4\r\n\r\n```\r\nimport { foo } from 'path/to/myModule'\r\n```\r\n\r\nThe project defines its `baseUrl` in `tsconfig.json` like below.\r\n\r\n```\r\n\"baseUrl\": \"./\",\r\n```\r\n\r\nThe import path seems to start with the `baseUrl`, therefore, when I disable `baseUrl` in `tsconfig.json`, the import path becomes relative. \r\n\r\nThis behavior appears when I set `TypeScript › Preferences: Import Module Specifier` as `shortest` or `project-relative`.\r\n\r\nI'm sorry, but I haven't been able to create a minimal reproducible case yet. Does anyone know anything about this?\r\n\r\nMy environment is below.\r\n\r\n```\r\nVersion: 1.87.2\r\nCommit: 863d2581ecda6849923a2118d93a088b0745d9d6\r\nDate: 2024-03-08T15:21:31.043Z\r\nElectron: 27.3.2\r\nElectronBuildId: 26836302\r\nChromium: 118.0.5993.159\r\nNode.js: 18.17.1\r\nV8: 11.8.172.18-electron.0\r\nOS: Darwin x64 22.6.0\r\n```\r\n\r\n\r\nVS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:21:31.043Z)\r\nOS version: Darwin x64 22.6.0\r\nModes:\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eSystem Info\u003c/summary\u003e\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)|\r\n|GPU Status|2d_canvas: enabled\u003cbr\u003ecanvas_oop_rasterization: disabled_off\u003cbr\u003edirect_rendering_display_compositor: disabled_off_ok\u003cbr\u003egpu_compositing: enabled\u003cbr\u003emultiple_raster_threads: enabled_on\u003cbr\u003eopengl: enabled_on\u003cbr\u003erasterization: enabled\u003cbr\u003eraw_draw: disabled_off_ok\u003cbr\u003eskia_graphite: disabled_off\u003cbr\u003evideo_decode: enabled\u003cbr\u003evideo_encode: enabled\u003cbr\u003ewebgl: enabled\u003cbr\u003ewebgl2: enabled\u003cbr\u003ewebgpu: enabled|\r\n|Load (avg)|4, 3, 3|\r\n|Memory (System)|64.00GB (6.75GB free)|\r\n|Process Argv|. --crash-reporter-id b27626fb-3484-4fce-a531-22e8618705e5|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\u003c/details\u003eExtensions: none\u003cdetails\u003e\r\n\u003csummary\u003eA/B Experiments\u003c/summary\u003e\r\n\r\n```\r\nvsliv368cf:30146710\r\nvspor879:30202332\r\nvspor708:30202333\r\nvspor363:30204092\r\nvscorecescf:30445987\r\nvscod805cf:30301675\r\nbinariesv615:30325510\r\nvsaa593:30376534\r\npy29gd2263:30899288\r\nc4g48928:30535728\r\nazure-dev_surveyone:30548225\r\n2i9eh265:30646982\r\n962ge761:30959799\r\npythongtdpath:30769146\r\nwelcomedialogc:30910334\r\npythonidxpt:30866567\r\npythonnoceb:30805159\r\nasynctok:30898717\r\npythontestfixt:30902429\r\npythonregdiag2:30936856\r\npyreplss1:30897532\r\npythonmypyd1:30879173\r\npythoncet0:30885854\r\nh48ei257:31000450\r\npythontbext0:30879054\r\naccentitlementst:30995554\r\ndsvsc016:30899300\r\ndsvsc017:30899301\r\ndsvsc018:30899302\r\ncppperfnew:31000557\r\nd34g3935:30971562\r\nfegfb526:30981948\r\nbg6jg535:30979843\r\nccp2r3:30993541\r\ndsvsc020:30976470\r\npythonait:31006305\r\njchc7451:30973076\r\ngee8j676:30988843\r\ndsvsc021:30996838\r\ng1icg217:30999571\r\n\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n\u003c!-- generated by issue reporter --\u003e","author":{"url":"https://github.com/nekoya","@type":"Person","name":"nekoya"},"datePublished":"2024-04-02T10:26:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/58034/TypeScript/issues/58034"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6ae9fcde-9dff-819a-d7c5-ff32223d359d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD126:17881E:1795A91:2126EDB:6A61CE26
html-safe-nonce440ba62485760dc68785fe316326b096d4ccffa10e5e538c38155f50b4ce6d40
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTI2OjE3ODgxRToxNzk1QTkxOjIxMjZFREI6NkE2MUNFMjYiLCJ2aXNpdG9yX2lkIjoiNTYxNzAyMTY4OTYzNTM5MzA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd475c63854388eeb5d41e8abeea3e5729a5b737522b2f8c081fa06f84d8f41ca
hovercard-subject-tagissue:2220684874
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/58034/issue_layout
twitter:imagehttps://opengraph.githubassets.com/46e120d8031630d21a8c5564a4c86c194b963a6c9e88a0a3b1cd8bfc061b4786/microsoft/TypeScript/issues/58034
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/46e120d8031630d21a8c5564a4c86c194b963a6c9e88a0a3b1cd8bfc061b4786/microsoft/TypeScript/issues/58034
og:image:altType: Bug After upgrading TypeScript to 5.4, import path completion did changed its behavior in my project. TypeScript 5.3 import { foo } from './myModule' TypeScript 5.4 import { foo } from 'path/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenekoya
hostnamegithub.com
expected-hostnamegithub.com
Noneb2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c
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
released1866027ded575df8a15c731dd8b9986c9483ceb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/58034#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F58034
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%2Fissues%2F58034
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/58034
Reloadhttps://github.com/microsoft/TypeScript/issues/58034
Reloadhttps://github.com/microsoft/TypeScript/issues/58034
Please reload this pagehttps://github.com/microsoft/TypeScript/issues/58034
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 21 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
TypeScript 5.4 import path completion results in unintended pathshttps://github.com/microsoft/TypeScript/issues/58034#top
https://github.com/nekoya
nekoyahttps://github.com/nekoya
on Apr 2, 2024https://github.com/microsoft/TypeScript/issues/58034#issue-2220684874
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.