Title: Organize imports doesn't keep imports in a vertical column · Issue #51615 · microsoft/TypeScript · GitHub
Open Graph Title: Organize imports doesn't keep imports in a vertical column · Issue #51615 · microsoft/TypeScript
X Title: Organize imports doesn't keep imports in a vertical column · Issue #51615 · microsoft/TypeScript
Description: After reformatting this repo's imports as vertical sorted columns for better merge conflict handling, we noticed that running organize imports produced an odd result. Given this test: ///
Open Graph Description: After reformatting this repo's imports as vertical sorted columns for better merge conflict handling, we noticed that running organize imports produced an odd result. Given this test: /// X Description: After reformatting this repo's imports as vertical sorted columns for better merge conflict handling, we noticed that running organize imports produced an odd result. Given this test: /// <r...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/51615
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Organize imports doesn't keep imports in a vertical column","articleBody":"After reformatting this repo's imports as vertical sorted columns for better merge conflict handling, we noticed that running organize imports produced an odd result. Given this test:\r\n\r\n```ts\r\n/// \u003creference path=\"fourslash.ts\" />\r\n\r\n////import {\r\n//// Type1,\r\n//// Type2,\r\n//// func4,\r\n//// Type3,\r\n//// Type4,\r\n//// Type5,\r\n//// Type7,\r\n//// Type8,\r\n//// Type9,\r\n//// func1,\r\n//// func2,\r\n//// Type6,\r\n//// func3,\r\n//// func5,\r\n//// func6,\r\n//// func7,\r\n//// func8,\r\n//// func9,\r\n////} from \"foo\";\r\n////interface Use extends Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9 {}\r\n////console.log(func1, func2, func3, func4, func5, func6, func7, func8, func9);\r\n\r\nverify.organizeImports(\r\n`import {\r\n func1,\r\n func2,\r\n func3,\r\n func4,\r\n func5,\r\n func6,\r\n func7,\r\n func8,\r\n func9,\r\n Type1,\r\n Type2,\r\n Type3,\r\n Type4,\r\n Type5,\r\n Type6,\r\n Type7,\r\n Type8,\r\n Type9,\r\n} from \"foo\";\r\ninterface Use extends Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9 {}\r\nconsole.log(func1, func2, func3, func4, func5, func6, func7, func8, func9);`\r\n);\r\n```\r\n\r\nOrganize imports gives:\r\n\r\n```ts\r\nimport {\r\n func1,\r\n func2, func3, func4, func5,\r\n func6,\r\n func7,\r\n func8,\r\n func9, Type1,\r\n Type2, Type3,\r\n Type4,\r\n Type5, Type6, Type7,\r\n Type8,\r\n Type9\r\n} from \"foo\";\r\ninterface Use extends Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9 {}\r\nconsole.log(func1, func2, func3, func4, func5, func6, func7, func8, func9)\r\n```","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2022-11-21T18:37:17Z","url":"https://github.com/microsoft/TypeScript/issues/51615"}
react-profiling 0 react-import-map react,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-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:57c72e1e-1a08-e13d-0db7-375e9963b310 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id B330:4D9F2:16FCDC:1E694D:6B0187FB html-safe-nonce 89542aa8ee3bab188731dc852d0b55c99db291feebd136fe005cbed76ad6adfb visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzMwOjREOUYyOjE2RkNEQzoxRTY5NEQ6NkIwMTg3RkIiLCJ2aXNpdG9yX2lkIjoiNzkwMDc2OTkwMTAzMDI0NjM5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 9bda8efd6a2a2bcdc8bd96d3e751538b5ad0cf3ed8c4656de4a94d114fe3cf92 hovercard-subject-tag issue:1458405373 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/51615/issue_layout twitter:image https://opengraph.githubassets.com/cfd950cf1ad1ae92b8b761961b1e632ec1f004af36ab9cc449793e56a7fd85f4/microsoft/TypeScript/issues/51615 twitter:card summary_large_image og:image https://opengraph.githubassets.com/cfd950cf1ad1ae92b8b761961b1e632ec1f004af36ab9cc449793e56a7fd85f4/microsoft/TypeScript/issues/51615 og:image:alt After reformatting this repo's imports as vertical sorted columns for better merge conflict handling, we noticed that running organize imports produced an odd result. Given this test: /// og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username jakebailey hostname github.com expected-hostname github.com None cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c turbo-cache-control no-preview go-import github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git octolytics-dimension-user_id 6154722 octolytics-dimension-user_login microsoft octolytics-dimension-repository_id 20929025 octolytics-dimension-repository_nwo microsoft/TypeScript octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 20929025 octolytics-dimension-repository_network_root_nwo microsoft/TypeScript turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 8c77c9e8439031ad54c75a250694842892f693e1 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.