Title: unexpected chained "then" method indentation · Issue #6320 · microsoft/TypeScript · GitHub
Open Graph Title: unexpected chained "then" method indentation · Issue #6320 · microsoft/TypeScript
X Title: unexpected chained "then" method indentation · Issue #6320 · microsoft/TypeScript
Description: In VS Code (as it uses the built in formatter, I assume this is the best place to put the issue), the TS formatting produces this: foo() .then
Open Graph Description: In VS Code (as it uses the built in formatter, I assume this is the best place to put the issue), the TS formatting produces this: foo() .then
X Description: In VS Code (as it uses the built in formatter, I assume this is the best place to put the issue), the TS formatting produces this: foo() .then<void>( function(): void { }, function(): void { ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/6320
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"unexpected chained \"then\" method indentation ","articleBody":"In VS Code (as it uses the built in formatter, I assume this is the best place to put the issue), the TS formatting produces this:\n\n```\nfoo()\n .then\u003cvoid>(\n function(): void {\n },\n function(): void {\n }\n )\n .then\u003cvoid>(\n function(): void {\n },\n function(): void {\n }\n );\n```\n\nI would expect this:\n\n```\nfoo()\n .then\u003cvoid>(\n function(): void {\n },\n function(): void {\n }\n )\n .then\u003cvoid>(\n function(): void {\n },\n function(): void {\n }\n );\n```\n\nThe former is pretty hard to read.\n","author":{"url":"https://github.com/jpetitte","@type":"Person","name":"jpetitte"},"datePublished":"2016-01-02T15:47:37Z","url":"https://github.com/microsoft/TypeScript/issues/6320"}
| 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:59132934-d214-9cb6-9e29-0a8f7858ebae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B282:2E5652:5070D7:683576:6B00D9B4 |
| html-safe-nonce | 1aefb955118632dc979efd28a59d5bddfeb553407817d01a6ad580a1ea5235df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjgyOjJFNTY1Mjo1MDcwRDc6NjgzNTc2OjZCMDBEOUI0IiwidmlzaXRvcl9pZCI6IjcyOTM0Mzc4NzE5Njc5OTQxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a1568aaf9e0b3350bdb72be70c268e40bf753365b50de51b059c550d881b931e |
| hovercard-subject-tag | issue:124596471 |
| 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/6320/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f1ba0a995ff99bdf69237d832d8434666163f913de744a17fa0d5282a718eac2/microsoft/TypeScript/issues/6320 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f1ba0a995ff99bdf69237d832d8434666163f913de744a17fa0d5282a718eac2/microsoft/TypeScript/issues/6320 |
| og:image:alt | In VS Code (as it uses the built in formatter, I assume this is the best place to put the issue), the TS formatting produces this: foo() .then |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jpetitte |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| 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 | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width