Title: Format code unindents multi-line import statement · Issue #6924 · microsoft/TypeScript · GitHub
Open Graph Title: Format code unindents multi-line import statement · Issue #6924 · microsoft/TypeScript
X Title: Format code unindents multi-line import statement · Issue #6924 · microsoft/TypeScript
Description: Take this code snippet: import {Obj1, Obj2, Ob3, SomeVeryLongObjName, etc} as SomeVeryLong from 'some/file/with/a/very/very/very/very/long/path'; When the TS formatter is run on it, the second line is unindented and becomes this: import ...
Open Graph Description: Take this code snippet: import {Obj1, Obj2, Ob3, SomeVeryLongObjName, etc} as SomeVeryLong from 'some/file/with/a/very/very/very/very/long/path'; When the TS formatter is run on it, the second line...
X Description: Take this code snippet: import {Obj1, Obj2, Ob3, SomeVeryLongObjName, etc} as SomeVeryLong from 'some/file/with/a/very/very/very/very/long/path'; When the TS formatter is run on it, the sec...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/6924
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Format code unindents multi-line import statement","articleBody":"Take this code snippet:\n\n```\nimport {Obj1, Obj2, Ob3, SomeVeryLongObjName, etc} as SomeVeryLong\n from 'some/file/with/a/very/very/very/very/long/path';\n```\n\nWhen the TS formatter is run on it, the second line is unindented and becomes this:\n\n```\nimport {Obj1, Obj2, Ob3, SomeVeryLongObjName, etc} as SomeVeryLong\nfrom 'some/file/with/a/very/very/very/very/long/path';\n```\n\nThat seems incorrect behavior to me. I would have expected the formatter to ensure that multi-line imports are indented. \n\nOriginally reported here: https://github.com/vvakame/typescript-formatter/issues/33\n","author":{"url":"https://github.com/aeisenberg","@type":"Person","name":"aeisenberg"},"datePublished":"2016-02-05T16:08:41Z","url":"https://github.com/microsoft/TypeScript/issues/6924"}
| 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:01de2a8d-8ad6-e61f-907b-00c296e5e172 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6C0:25A204:403625:567F06:6B00C86D |
| html-safe-nonce | 93e23266267816da1b6a4c1f0423aa15740ed4395d177b8258dd0d72b7888e11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkMwOjI1QTIwNDo0MDM2MjU6NTY3RjA2OjZCMDBDODZEIiwidmlzaXRvcl9pZCI6Ijc2NDA4NzM3OTM0OTczODUwNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c26ced30057acc41e65b14d07cb51be1672a87a2da1f4c28286144d0c4ae485d |
| hovercard-subject-tag | issue:131682423 |
| 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/6924/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5cc5858d3aa5fac4e635482ffb87e7277e8b3d6a4b270d61f9567c905af3c163/microsoft/TypeScript/issues/6924 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5cc5858d3aa5fac4e635482ffb87e7277e8b3d6a4b270d61f9567c905af3c163/microsoft/TypeScript/issues/6924 |
| og:image:alt | Take this code snippet: import {Obj1, Obj2, Ob3, SomeVeryLongObjName, etc} as SomeVeryLong from 'some/file/with/a/very/very/very/very/long/path'; When the TS formatter is run on it, the second line... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aeisenberg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| 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 | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width