Title: getEditsForFileRename: changes package import of symlinked package to relative path · Issue #25029 · microsoft/TypeScript · GitHub
Open Graph Title: getEditsForFileRename: changes package import of symlinked package to relative path · Issue #25029 · microsoft/TypeScript
X Title: getEditsForFileRename: changes package import of symlinked package to relative path · Issue #25029 · microsoft/TypeScript
Description: TypeScript Version: 3.0.0-dev.20180616 Search Terms: rename, relative Repro clone https://github.com/fimbullinter/wotan yarn creates symlinks for each packages/
Open Graph Description: TypeScript Version: 3.0.0-dev.20180616 Search Terms: rename, relative Repro clone https://github.com/fimbullinter/wotan yarn creates symlinks for each packages/
X Description: TypeScript Version: 3.0.0-dev.20180616 Search Terms: rename, relative Repro clone https://github.com/fimbullinter/wotan yarn creates symlinks for each packages/<name> as node_modules/@fimbul/...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/25029
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"getEditsForFileRename: changes package import of symlinked package to relative path","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 3.0.0-dev.20180616\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** rename, relative\r\n\r\n**Repro**\r\n\r\n* clone https://github.com/fimbullinter/wotan\r\n* `yarn`\r\n * creates symlinks for each `packages/\u003cname>` as `node_modules/@fimbul/\u003cname>`\r\n* open in VSCode\r\n* rename `packages/wotan/index.ts` to `packages/wotan/index1.ts` (simply append \"1\" to the name)\r\n* accept automatic update of imports\r\n\r\n**Expected behavior:**\r\n\r\nNo edits, file stays unchanged\r\n\r\n**Actual behavior:**\r\n\r\nIn the first line `export * from '@fimbul/ymir';` is changed to `export * from '../ymir/src';`\r\n\r\n**Playground Link:** \u003c!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior --> \r\n\r\n**Related Issues:**\r\n\r\n#24961\r\n#25026","author":{"url":"https://github.com/ajafff","@type":"Person","name":"ajafff"},"datePublished":"2018-06-17T20:28:19Z","url":"https://github.com/microsoft/TypeScript/issues/25029"}
| 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:545f8756-ec8e-4781-c67c-020eccb6770a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A018:3F4D7A:6F01C7:9544F1:6B04A420 |
| html-safe-nonce | d44f4ec7d3a56fe55cc6326ed12b6c4918ebd92641716f233e22aa29920d6fb7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDE4OjNGNEQ3QTo2RjAxQzc6OTU0NEYxOjZCMDRBNDIwIiwidmlzaXRvcl9pZCI6IjQ4NjY1NjIzNTg5NTg2NjI2ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 68fa6cdf8b9adbf470fa3dd61a213506ac320e9eb2233d251d7b622f84fcada9 |
| hovercard-subject-tag | issue:333090393 |
| 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/25029/issue_layout |
| twitter:image | https://opengraph.githubassets.com/167c9c21c951c38ec8ac21ea282aa763f45117aee888735847391bc7090dd18a/microsoft/TypeScript/issues/25029 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/167c9c21c951c38ec8ac21ea282aa763f45117aee888735847391bc7090dd18a/microsoft/TypeScript/issues/25029 |
| og:image:alt | TypeScript Version: 3.0.0-dev.20180616 Search Terms: rename, relative Repro clone https://github.com/fimbullinter/wotan yarn creates symlinks for each packages/ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ajafff |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width