Title: Rename prefix/suffix needs to be opt-in · Issue #28679 · microsoft/TypeScript · GitHub
Open Graph Title: Rename prefix/suffix needs to be opt-in · Issue #28679 · microsoft/TypeScript
X Title: Rename prefix/suffix needs to be opt-in · Issue #28679 · microsoft/TypeScript
Description: I believe this is the main change: 0a97663 I believe the goal was to be able to rename x to y like this: const x = 1; export { x }; const y = 1; export { y as x }; Since editors pre-dating this change don't know that prefix and suffix te...
Open Graph Description: I believe this is the main change: 0a97663 I believe the goal was to be able to rename x to y like this: const x = 1; export { x }; const y = 1; export { y as x }; Since editors pre-dating this cha...
X Description: I believe this is the main change: 0a97663 I believe the goal was to be able to rename x to y like this: const x = 1; export { x }; const y = 1; export { y as x }; Since editors pre-dating this cha...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/28679
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rename prefix/suffix needs to be opt-in","articleBody":"I believe this is the main change: https://github.com/Microsoft/TypeScript/commit/0a97663843e11f745d9998d54db0970ee3bfb748\r\n\r\nI believe the goal was to be able to rename `x` to `y` like this:\r\n```ts\r\nconst x = 1;\r\nexport { x };\r\n```\r\n```ts\r\nconst y = 1;\r\nexport { y as x };\r\n```\r\n\r\nSince editors pre-dating this change don't know that prefix and suffix text might accompany the rename result, they don't apply it, resulting in\r\n```ts\r\nconst y = 1;\r\nexport { y };\r\n```\r\nwhich breaks any importing file.\r\n\r\nWe probably need a `UserPreference` to make this behavior opt-in.","author":{"url":"https://github.com/amcasey","@type":"Person","name":"amcasey"},"datePublished":"2018-11-27T02:13:24Z","url":"https://github.com/microsoft/TypeScript/issues/28679"}
| 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:b356b1ba-5ca0-15f7-ee4e-1d4c2ce87abf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB94:3F8AB1:13BC5F3:1932C2D:6B0111D4 |
| html-safe-nonce | bf6cb31645c8050590688c611e08ba5e628d5fe503dd6b93d7bda67e30e5d874 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjk0OjNGOEFCMToxM0JDNUYzOjE5MzJDMkQ6NkIwMTExRDQiLCJ2aXNpdG9yX2lkIjoiMTM4NzY3MjcyMzYwNTQ5MjE4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 03637008718fe70b49fe27369f511e54feb4c5384e5c272bdf38afd917a6902d |
| hovercard-subject-tag | issue:384589533 |
| 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/28679/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac886cd83dead03eee2996a1d1347daa5e6bf0ffb8098935ddf111e8f2c88fdd/microsoft/TypeScript/issues/28679 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac886cd83dead03eee2996a1d1347daa5e6bf0ffb8098935ddf111e8f2c88fdd/microsoft/TypeScript/issues/28679 |
| og:image:alt | I believe this is the main change: 0a97663 I believe the goal was to be able to rename x to y like this: const x = 1; export { x }; const y = 1; export { y as x }; Since editors pre-dating this cha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amcasey |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width