Title: getIndentation fails with JsxElement · Issue #4332 · microsoft/TypeScript · GitHub
Open Graph Title: getIndentation fails with JsxElement · Issue #4332 · microsoft/TypeScript
X Title: getIndentation fails with JsxElement · Issue #4332 · microsoft/TypeScript
Description: ///
Open Graph Description: ///
X Description: /// <reference path='fourslash.ts' /> //@Filename: file.tsx ////(function () { //// return ( //// <div> //// <div> //// </div> //// /*indent2*/ //// </div> ///...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/4332
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"getIndentation fails with JsxElement","articleBody":"``` typescript\n/// \u003creference path='fourslash.ts' />\n\n//@Filename: file.tsx\n////(function () {\n//// return (\n//// \u003cdiv>\n//// \u003cdiv>\n//// \u003c/div>\n//// /*indent2*/\n//// \u003c/div>\n//// )\n////})\n\n\nformat.document();\ngoTo.marker(\"indent2\");\nverify.indentationIs(12);\n```\n\nThis causes error (in master branch):\n\n```\nError: Debug Failure. False expression:\n at Object.assert (eval at \u003canonymous> (C:\\Users\\sasch_000\\Documents\\GitHub\\typescript-f\\built\\local\\run.js:53472:13), \u003canonymous>:1549:23)\n```\n\nInserting a text line prevents this error. (foo)\n\n``` typescript\n//@Filename: file.tsx\n////(function () {\n//// return (\n//// \u003cdiv>\n//// \u003cdiv>\n//// \u003c/div>\n//// foo\n//// /*indent2*/\n//// \u003c/div>\n//// )\n////})\n```\n","author":{"url":"https://github.com/saschanaz","@type":"Person","name":"saschanaz"},"datePublished":"2015-08-16T17:05:09Z","url":"https://github.com/microsoft/TypeScript/issues/4332"}
| 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:3452bf62-9010-4cc1-ce87-eb981ac3b3d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0D2:3F4253:48CCF4:6325E4:6B00CD7D |
| html-safe-nonce | 2a765cede26fd2f3f88d6432797252b3f7609aa3551fc95f0e6396d034b300b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEQyOjNGNDI1Mzo0OENDRjQ6NjMyNUU0OjZCMDBDRDdEIiwidmlzaXRvcl9pZCI6Ijc3NTA0ODk0MDc2NjAwMTkwNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3ea922fc15ed59ebd2177790c4214b1294e3609d7423c07c59b32ca4e93b6831 |
| hovercard-subject-tag | issue:101281162 |
| 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/4332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b746c9e619f50e540295e1fee72a5c5f556578d98bee3e48e30b2fb57324fbf/microsoft/TypeScript/issues/4332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b746c9e619f50e540295e1fee72a5c5f556578d98bee3e48e30b2fb57324fbf/microsoft/TypeScript/issues/4332 |
| og:image:alt | /// //// //// ) ////}) format.document(); goTo.mar... //// //// /*indent2*/ //// |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | saschanaz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5 |
| 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 | 4943239a6d2c591325dad6e5c313e1cafda877f6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width