You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importjava.util.*;
publicclassHello {
publicstaticvoidmain(String[] args) {
List<String> list = newArrayList<>();
list = newArrayList<>();
}
}
When you autocomplete on the first ArrayList, (triggering autoimport of java.util.ArrayList is a usual use case), the result breaks the existing code, regardless of the java.completion.overwrite preference.
If you repeat the completion step on the LinkedList constructor, the completion doesn't provide you with a list of constructors for some reason, only the type, and applying the completion item doesn't break the code: