Auto-import is not working for classes with the same name
brndt opened this issue · comments
Describe the bug
- If you have imported some class with name X using alias and then want to use other class with the same name VS Code doesn't suggest to import it when you have finished typing (but it does while you typing) (see the first screenshot).
- And if you import package while typing it doesn't paste package name to all imports section but to the place when you typing it (see the second screenshot).
![Screenshot_2024-06-02_at_18 14 57](https://private-user-images.githubusercontent.com/21007364/336149910-17362818-42d0-405b-a8cc-756c9dd172ef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzODI5OTEsIm5iZiI6MTcyMDM4MjY5MSwicGF0aCI6Ii8yMTAwNzM2NC8zMzYxNDk5MTAtMTczNjI4MTgtNDJkMC00MDViLWE4Y2MtNzU2YzlkZDE3MmVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA3VDIwMDQ1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY2MjE1NmE1ZTg0ZjAzNzQyMzI4OTg4N2VlYjVkYjViYTZjNTU3OGExMjFkNjJkOGRlYjBlZDZhNTA0NmYwZTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SKwmCqaFeU8mRTsbDvRivhfwXzXBz4wdftZGwzbSzBA)
![Screenshot_2024-06-02_at_18 17 06](https://private-user-images.githubusercontent.com/21007364/336149912-b36546e6-91bd-487c-8b6a-179880dd9130.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzODI5OTEsIm5iZiI6MTcyMDM4MjY5MSwicGF0aCI6Ii8yMTAwNzM2NC8zMzYxNDk5MTItYjM2NTQ2ZTYtOTFiZC00ODdjLThiNmEtMTc5ODgwZGQ5MTMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA3VDIwMDQ1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZhYjMxYjAzMTAwZjJlMjY1OTJhYjUyNmM4ZjkxNjEwNDEwMWFhYmE4ZGRjNmIwYTVlMTdjOTQ5ZTY5ZGEyNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RndX9Wm7lodqS9lt0byXuEcOvqet7wbP4MsIJUzlNxo)
Expected behavior
No response
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.3.1
Extra context or search terms
No response