{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/47419","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/47419/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/47419/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/47419/events","html_url":"https://github.com/Microsoft/vscode/issues/47419","id":312279552,"number":47419,"title":"Organize Imports removes alias","user":{"login":"evanfuture","id":2659994,"avatar_url":"https://avatars2.githubusercontent.com/u/2659994?v=4","gravatar_id":"","url":"https://api.github.com/users/evanfuture","html_url":"https://github.com/evanfuture","followers_url":"https://api.github.com/users/evanfuture/followers","following_url":"https://api.github.com/users/evanfuture/following{/other_user}","gists_url":"https://api.github.com/users/evanfuture/gists{/gist_id}","starred_url":"https://api.github.com/users/evanfuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanfuture/subscriptions","organizations_url":"https://api.github.com/users/evanfuture/orgs","repos_url":"https://api.github.com/users/evanfuture/repos","events_url":"https://api.github.com/users/evanfuture/events{/privacy}","received_events_url":"https://api.github.com/users/evanfuture/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-08T07:07:23Z","updated_at":"2018-04-08T07:07:28Z","closed_at":null,"author_association":"NONE","body":"<!-- Do you have a question? Please ask it on https://stackoverflow.com/questions/tagged/vscode. -->\r\n\r\n<!-- Use Help > Report Issue to prefill these. -->\r\n- VSCode Version: 1.22.1\r\n- OS Version: macOS 10.13.3\r\n\r\nSteps to Reproduce:\r\n\r\n1. Given a file with these inputs:\r\n```\r\nimport { Component } from '@angular/core';\r\nimport { AppState } from './app';\r\nimport * as application from 'tns-core-modules/application';\r\nimport { init as advancedWebviewInit } from 'nativescript-advanced-webview';\r\n```\r\n\r\n2. Run Typescript: Organize Inputs\r\n\r\n3. What results is\r\n```\r\nimport { Component } from '@angular/core';\r\nimport * as application from 'tns-core-modules/application';\r\nimport { AppState } from './app';\r\n```\r\n\r\nNot that the `import * as application` works fine, but `import { init as advancedWebviewInit }` is removed entirely.  Yikes!\r\n\r\n<!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/379526473","html_url":"https://github.com/Microsoft/vscode/issues/47419#issuecomment-379526473","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/47419","id":379526473,"user":{"login":"vscodebot[bot]","id":28792856,"avatar_url":"https://avatars2.githubusercontent.com/in/2406?v=4","gravatar_id":"","url":"https://api.github.com/users/vscodebot%5Bbot%5D","html_url":"https://github.com/apps/vscodebot","followers_url":"https://api.github.com/users/vscodebot%5Bbot%5D/followers","following_url":"https://api.github.com/users/vscodebot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/vscodebot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/vscodebot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vscodebot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/vscodebot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/vscodebot%5Bbot%5D/repos","events_url":"https://api.github.com/users/vscodebot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/vscodebot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-04-08T07:07:28Z","updated_at":"2018-04-08T07:07:28Z","author_association":"NONE","body":"(Experimental duplicate detection)\nThanks for submitting this issue. Please also check if it is already covered by an existing one, like:\n- [TypeScript and JavaScript organize imports  (#45108)](https://www.github.com/Microsoft/vscode/issues/45108) <!-- score: 0.616 -->\n- [Test organize imports (#46589)](https://www.github.com/Microsoft/vscode/issues/46589) <!-- score: 0.572 -->\n- [Organize imports not connected with auto import (#46700)](https://www.github.com/Microsoft/vscode/issues/46700) <!-- score: 0.544 -->\n- [Auto import does not work when last import is type import (#44150)](https://www.github.com/Microsoft/vscode/issues/44150) <!-- score: 0.53 -->\n- [Organize imports should change relative to absolute imports or vica versa (#46699)](https://www.github.com/Microsoft/vscode/issues/46699) <!-- score: 0.512 -->\n<!-- potential_duplicates_comment -->"}}
{"actor":{"display_login":"vscodebot"}}