Title: multi-line argument indentation · Issue #14596 · microsoft/TypeScript · GitHub
Open Graph Title: multi-line argument indentation · Issue #14596 · microsoft/TypeScript
X Title: multi-line argument indentation · Issue #14596 · microsoft/TypeScript
Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - multi-line argument indentation · Issue #14596 · microsoft/TypeScript
Open Graph Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - multi-line argument indentation · Issue #14596 · microsoft/TypeScript
X Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - multi-line argument indentation · Issue #14596 · microsoft/TypeScript
Opengraph URL: https://github.com/microsoft/TypeScript
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"multi-line argument indentation","articleBody":"I've seen a number of indentation related bugs floating around but none quite like this. Not sure if this is fixed by #13574. \r\n\r\n**TypeScript Version:** 2.2.1\r\n\r\n**Explanation**\r\n\r\n```ts\r\n public async setPosition(path: Path, col: Col, \r\n cursorOptions?: CursorOptions) {\r\n await this._setPath(path);\r\n await this.setCol(col, cursorOptions);\r\n }\r\n\r\n public async setPath(path: Path, cursorOptions?: CursorOptions) {\r\n await this._setPath(path);\r\n await this._fromMoveCol(cursorOptions);\r\n }\r\n```\r\n\r\ngets autoformatted to\r\n\r\n```ts\r\n public async setPosition(path: Path, col: Col,\r\n cursorOptions?: CursorOptions) {\r\n await this._setPath(path);\r\n await this.setCol(col, cursorOptions);\r\n }\r\n\r\n public async setPath(path: Path, cursorOptions?: CursorOptions) {\r\n await this._setPath(path);\r\n await this._fromMoveCol(cursorOptions);\r\n }\r\n```\r\nIf the arguments to setPosition are put on a single line, then it works fine.","author":{"url":"https://github.com/WuTheFWasThat","@type":"Person","name":"WuTheFWasThat"},"datePublished":"2017-03-11T17:01:09Z","url":"https://github.com/microsoft/TypeScript/issues/14596"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:8fc371ec-ab7b-946d-670b-9f9731c97751 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5BA:1201C:85D066:B422CC:6B00E07C |
| html-safe-nonce | 0710a2da2273a5f903f7978ee09d00b38db97bdca5c06fceb55c87d3b1f32fe4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUJBOjEyMDFDOjg1RDA2NjpCNDIyQ0M6NkIwMEUwN0MiLCJ2aXNpdG9yX2lkIjoiMTkxMjUwMjg4Mzc2OTcwNDU3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4565c4a7524540f1eb2f0e62799cfc4703e6e788c7d34808349c55f9107461cd |
| hovercard-subject-tag | repository:20929025 |
| 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/microsoft/TypeScript/issues/14596 |
| twitter:image | https://opengraph.githubassets.com/1f843281190b2c7429603681aa8d9fd8bf4ea097561976135e9c5d266676c0e0/microsoft/TypeScript |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f843281190b2c7429603681aa8d9fd8bf4ea097561976135e9c5d266676c0e0/microsoft/TypeScript |
| og:image:alt | TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - multi-line argument indentation · Issue #14596 · microsoft/TypeScript |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| turbo-cache-control | no-cache |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width