Implement supportsRelativeImportPaths to improve performance.
@@ -40,6 +40,7 @@ import com.intellij.psi.PsiFileSystemItem;
import com.intellij.psi.ResolveResult;
import com.intellij.psi.impl.SyntheticFileSystemItem;
import com.intellij.psi.search.PsiElementProcessor;
+import com.intellij.util.ThreeState;
import java.util.Collection;
import java.util.Map;
import java.util.Objects;
@@ -87,6 +88,11 @@ class BlazeGoImportResolver implements GoImportResolver {
.orElse(null);
}
+ // @Override #api193
+ public ThreeState supportsRelativeImportPaths(Project project, @Nullable Module module) {
+ return ThreeState.NO;
+ }
+
@Nullable
static ConcurrentMap<String, Optional<BlazeGoPackage>> getGoPackageMap(Project project) {
return SyncCache.getInstance(project)
