Title: Paste with Edits causes self import · Issue #58716 · microsoft/TypeScript · GitHub
Open Graph Title: Paste with Edits causes self import · Issue #58716 · microsoft/TypeScript
X Title: Paste with Edits causes self import · Issue #58716 · microsoft/TypeScript
Description: 🔎 Search Terms paste edits 🕗 Version & Regression Information Nightly build with vscode insiders ⏯ Playground Link No response 💻 Code const k = 1; console.log(k); /**/ Copy console.log(k); and paste it at /**/ in the same file. 🙁 Actual ...
Open Graph Description: 🔎 Search Terms paste edits 🕗 Version & Regression Information Nightly build with vscode insiders ⏯ Playground Link No response 💻 Code const k = 1; console.log(k); /**/ Copy console.log(k); and past...
X Description: 🔎 Search Terms paste edits 🕗 Version & Regression Information Nightly build with vscode insiders ⏯ Playground Link No response 💻 Code const k = 1; console.log(k); /**/ Copy console.log(k); and ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/58716
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Paste with Edits causes self import","articleBody":"### 🔎 Search Terms\n\npaste edits\n\n### 🕗 Version \u0026 Regression Information\n\nNightly build with vscode insiders\n\n### ⏯ Playground Link\n\n_No response_\n\n### 💻 Code\n\n```ts \r\nconst k = 1;\r\n\r\nconsole.log(k);\r\n/**/\r\n```\r\n\r\nCopy `console.log(k);` and paste it at /**/ in the same file.\n\n### 🙁 Actual behavior\n\n```ts\r\nexport import { k } from \"./b\";\r\n\r\nconst k = 1;\r\n\r\nconsole.log(k);console.log(k);\r\n```\n\n### 🙂 Expected behavior\n\n```ts\r\nconst k = 1;\r\n\r\nconsole.log(k);\r\nconsole.log(k);\r\n```\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/navya9singh","@type":"Person","name":"navya9singh"},"datePublished":"2024-05-30T18:02:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/58716/TypeScript/issues/58716"}
| 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:3915c4d2-cfab-2508-b006-e8cadc3dc536 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85BC:2E5D97:3FB67A:5BB8CE:6A61E704 |
| html-safe-nonce | 3d11409bc9506026a6bbf13f3e592b3dc15b550e78bd1183b8df9bbb091f06a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUJDOjJFNUQ5NzozRkI2N0E6NUJCOENFOjZBNjFFNzA0IiwidmlzaXRvcl9pZCI6IjMwNDE3NTMwNjU4Mzk1OTMwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9de095e39817fcd6f705203eceeab221acc248341f17a04d6828a24e593074e6 |
| hovercard-subject-tag | issue:2326258327 |
| 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/58716/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e9543f13c6e82edacf7a9be84c026082c35aa67e3d842c9fcb6b21b2f9e43aa/microsoft/TypeScript/issues/58716 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e9543f13c6e82edacf7a9be84c026082c35aa67e3d842c9fcb6b21b2f9e43aa/microsoft/TypeScript/issues/58716 |
| og:image:alt | 🔎 Search Terms paste edits 🕗 Version & Regression Information Nightly build with vscode insiders ⏯ Playground Link No response 💻 Code const k = 1; console.log(k); /**/ Copy console.log(k); and past... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | navya9singh |
| hostname | github.com |
| expected-hostname | github.com |
| None | b2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c |
| 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 | d1866027ded575df8a15c731dd8b9986c9483ceb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width