René's URL Explorer Experiment


Title: Import module specifier: "shortest" doesn't pre-select the shortest (typescript) · Issue #42235 · microsoft/TypeScript · GitHub

Open Graph Title: Import module specifier: "shortest" doesn't pre-select the shortest (typescript) · Issue #42235 · microsoft/TypeScript

X Title: Import module specifier: "shortest" doesn't pre-select the shortest (typescript) · Issue #42235 · microsoft/TypeScript

Description: VSCode Version: classic 1.52.1 and 1.53.0-insider OS Version: Windows 10 pro - 20H2 Steps to Reproduce: Clone that repo Run, npm install Verify your VSCode module import preference is setup is "shortest" Open main.ts and observe line 5, ...

Open Graph Description: VSCode Version: classic 1.52.1 and 1.53.0-insider OS Version: Windows 10 pro - 20H2 Steps to Reproduce: Clone that repo Run, npm install Verify your VSCode module import preference is setup is "sho...

X Description: VSCode Version: classic 1.52.1 and 1.53.0-insider OS Version: Windows 10 pro - 20H2 Steps to Reproduce: Clone that repo Run, npm install Verify your VSCode module import preference is setup is &quo...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Import module specifier: \"shortest\" doesn't pre-select the shortest (typescript)","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!-- Please search existing issues to avoid creating duplicates. -->\r\n\u003c!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->\r\n\r\n\u003c!-- Use Help > Report Issue to prefill these. -->\r\n- VSCode Version: classic 1.52.1 and 1.53.0-insider\r\n- OS Version: Windows 10 pro - 20H2\r\n \r\nSteps to Reproduce:\r\n\r\n1. Clone that [repo](https://github.com/hugoblanc/vscode-shortest-repro)\r\n2. Run, npm install \r\n3. Verify your VSCode module import preference  is setup is \"shortest\" \r\n4. Open main.ts and observe line 5, the ideal shortest import (manually typed by me) `import { BasicDTO } from \"@repro-short-import/data\";`\r\n5. Open now app.component.ts and try to auto import `BasicDTO` from shared lib with ctrl+space.\r\n6. Optionnaly, use CTRL+. to try different import style and see that shortest is definitly not the first. Instead an absolut longer path is used `import { BasicDTO } from 'libs/data/src/lib/data';`\r\n\r\nIt is not due to the string length cause I got other repos where lib name is shorter than  `@repro-short-import/data`;\r\n\r\n\u003c!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes\r\n\r\nI'm using the insider version for every day coding and I downloaded the last clean and fresh vscode classic version to test this. These errors are occurring on both.\r\n\r\nUsing other type of import module specifier will eventually solve this issue but will cause some others => always use absolute path even for file which should be relatively imported. ","author":{"url":"https://github.com/hugoblanc","@type":"Person","name":"hugoblanc"},"datePublished":"2021-01-06T10:29:50Z","url":"https://github.com/microsoft/TypeScript/issues/42235"}

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:049c8d9f-a943-2056-21e7-d090f38462e6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA84:2E7EBB:DA0AF1:1142A11:6B0101F3
html-safe-nonce672e68ea642756c59a75028b5eaa502381903085b8cfc1bd43e85010b4bc3fe4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTg0OjJFN0VCQjpEQTBBRjE6MTE0MkExMTo2QjAxMDFGMyIsInZpc2l0b3JfaWQiOiI4Njc2NzEwODk0NzI3NjYwMDE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac05af3c50ac38a2733570db72434cbfb01214e8149d7edbcc69316d1fa6c0111a
hovercard-subject-tagissue:780984932
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/42235/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7e4d46d6a8615d99c120d9323775e950a29bae1a404775abf9ad4745b50c2641/microsoft/TypeScript/issues/42235
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7e4d46d6a8615d99c120d9323775e950a29bae1a404775abf9ad4745b50c2641/microsoft/TypeScript/issues/42235
og:image:altVSCode Version: classic 1.52.1 and 1.53.0-insider OS Version: Windows 10 pro - 20H2 Steps to Reproduce: Clone that repo Run, npm install Verify your VSCode module import preference is setup is "sho...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehugoblanc
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/42235#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F42235
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%2F42235
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/42235
Reloadhttps://github.com/microsoft/TypeScript/issues/42235
Reloadhttps://github.com/microsoft/TypeScript/issues/42235
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/42235
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/42235
Import module specifier: "shortest" doesn't pre-select the shortest (typescript)https://github.com/microsoft/TypeScript/issues/42235#top
https://github.com/andrewbranch
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
TypeScript 4.3.0https://github.com/microsoft/TypeScript/milestone/134
https://github.com/hugoblanc
Hugo Blanc (hugoblanc)https://github.com/hugoblanc
on Jan 6, 2021https://github.com/microsoft/TypeScript/issues/42235#issue-780984932
repohttps://github.com/hugoblanc/vscode-shortest-repro
VS Code Issue Triage Bot (vscode-triage-bot)https://github.com/vscode-triage-bot
Matt Bierner (mjbvz)https://github.com/mjbvz
on Jan 6, 2021https://github.com/microsoft/TypeScript/issues/42235#event-4174831768
Matt Bierner (mjbvz)https://github.com/mjbvz
microsoft/vscodehttps://github.com/microsoft/vscode
on Jan 7, 2021https://github.com/microsoft/TypeScript/issues/42235#event-4177933153
Matt Bierner (mjbvz)https://github.com/mjbvz
on Jan 7, 2021https://github.com/microsoft/TypeScript/issues/42235#event-4177933303
https://github.com/hugoblanc
Hugo Blanc (hugoblanc)https://github.com/hugoblanc
on Jan 7, 2021https://github.com/microsoft/TypeScript/issues/42235#issuecomment-756117548
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Jan 8, 2021https://github.com/microsoft/TypeScript/issues/42235#event-4182353868
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Jan 8, 2021https://github.com/microsoft/TypeScript/issues/42235#event-4182353994
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.3.0https://github.com/microsoft/TypeScript/milestone/134
on Jan 8, 2021https://github.com/microsoft/TypeScript/issues/42235#event-4182354180
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Feb 22, 2021https://github.com/microsoft/TypeScript/issues/42235#issuecomment-783562153
#42614https://github.com/microsoft/TypeScript/pull/42614
Andrew Branch (andrewbranch)https://github.com/andrewbranch
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 22, 2021https://github.com/microsoft/TypeScript/issues/42235#event-4361148598
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/42235
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/42235
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
TypeScript 4.3.0https://github.com/microsoft/TypeScript/milestone/134
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.