Title: wrong indent after formatting · Issue #8644 · microsoft/TypeScript · GitHub
Open Graph Title: wrong indent after formatting · Issue #8644 · microsoft/TypeScript
X Title: wrong indent after formatting · Issue #8644 · microsoft/TypeScript
Description: TypeScript Version: 1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217) Code // A self-contained demonstration of the problem follows... this._register('vscode.diff', (left: URI, right: URI, label: string) => { return this._commands.execut...
Open Graph Description: TypeScript Version: 1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217) Code // A self-contained demonstration of the problem follows... this._register('vscode.diff', (left: URI, right: URI, label: s...
X Description: TypeScript Version: 1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217) Code // A self-contained demonstration of the problem follows... this._register('vscode.diff', (left: URI, right: URI, ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/8644
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"wrong indent after formatting","articleBody":"\u003c!--\nThank you for contributing to TypeScript! Please review this checklist\n before submitting your issue.\n[ ] Many common issues and suggestions are addressed in the FAQ\n https://github.com/Microsoft/TypeScript/wiki/FAQ\n[ ] Search for duplicates before logging new issues\n https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\n[ ] Questions are best asked and answered at Stack Overflow\n http://stackoverflow.com/questions/tagged/typescript\n\nFor bug reports, please include the information below.\n__________________________________________________________ -->\n\n**TypeScript Version:** \n\n1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)\n\n**Code**\n\n``` ts\n// A self-contained demonstration of the problem follows...\nthis._register('vscode.diff', (left: URI, right: URI, label: string) => {\n return this._commands.executeCommand('_workbench.diff', left, right, label);\n}, {\n description: 'Opens the provided resources in the diff editor to compare their contents.',\n args: [\n { name: 'left', description: 'Uri of the resource for the left hand side of the diff editor', constraint: value => value instanceof URI },\n { name: 'right', description: 'Uri of the resource for the right hand side of the diff editor', constraint: value => value instanceof URI },\n { name: 'label', description: 'Label to use for the diff editor', constraint: value => typeof value === 'string' }\n ]\n});\n```\n\n**Expected behavior:**\n- goto ts playground \n- paste the code and invoke format\n- you get this (note the wrong indent on the last 7 lines):\n\n```\nthis._register('vscode.diff', (left: URI, right: URI, label: string) => {\n return this._commands.executeCommand('_workbench.diff', left, right, label);\n}, {\n description: 'Opens the provided resources in the diff editor to compare their contents.',\n args: [\n { name: 'left', description: 'Uri of the resource for the left hand side of the diff editor', constraint: value => value instanceof URI },\n { name: 'right', description: 'Uri of the resource for the right hand side of the diff editor', constraint: value => value instanceof URI },\n { name: 'label', description: 'Label to use for the diff editor', constraint: value => typeof value === 'string' }\n ]\n });\n```\n\n**Actual behavior:** \n\nindent properly\n","author":{"url":"https://github.com/jrieken","@type":"Person","name":"jrieken"},"datePublished":"2016-05-17T13:23:45Z","url":"https://github.com/microsoft/TypeScript/issues/8644"}
| 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:6369e0b2-1afe-3dcd-a2ca-56841fa5b855 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 884A:2679E9:753692:9E935E:6B00DD5B |
| html-safe-nonce | a1312e313c51eaf1d8da44299146ad7ab1e673574bbbebd7dc3eb2abce4ae185 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODRBOjI2NzlFOTo3NTM2OTI6OUU5MzVFOjZCMDBERDVCIiwidmlzaXRvcl9pZCI6IjM4MTgyMjY3MDEwMzMzMzIwNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6aca9306dc50e91fa66c03e38fecee1aad15c0bf8dc2e4643f782660b186712b |
| hovercard-subject-tag | issue:155258451 |
| 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/8644/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a463679208f9735a1ae5e7dccc4c5f6d767b1afba3b0718b86e637df6961ee9c/microsoft/TypeScript/issues/8644 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a463679208f9735a1ae5e7dccc4c5f6d767b1afba3b0718b86e637df6961ee9c/microsoft/TypeScript/issues/8644 |
| og:image:alt | TypeScript Version: 1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217) Code // A self-contained demonstration of the problem follows... this._register('vscode.diff', (left: URI, right: URI, label: s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jrieken |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width