scalameta / metals

Scala language server with rich IDE features 🚀

Home Page:https://scalameta.org/metals/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto-import is not working for classes with the same name

brndt opened this issue · comments

Describe the bug

  1. 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).
  2. 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 Screenshot_2024-06-02_at_18 17 06

Expected behavior

No response

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

v1.3.1

Extra context or search terms

No response