Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove strongInfoHolder flag, so users can choose which plugin t… #7092

Merged
merged 3 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class AutoImportProjectOpenProcessor extends ProjectOpenProcessor {
public @NotNull
@Nls
String getName() {
return Blaze.defaultBuildSystemName() + " Project";
return "Bazel";
}

@javax.annotation.Nullable
Expand All @@ -78,7 +78,7 @@ public Icon getIcon() {

@Override
public boolean isStrongProjectInfoHolder() {
return true;
return false;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.projectImport.ProjectOpenProcessor;
import icons.BlazeIcons;
import org.jetbrains.annotations.NotNull;

import javax.annotation.Nullable;
import javax.swing.Icon;
Expand All @@ -33,8 +34,8 @@
/** Allows directly opening a project with project data directory embedded within the project. */
public class BlazeProjectOpenProcessor extends ProjectOpenProcessor {
@Override
public String getName() {
return Blaze.defaultBuildSystemName() + " Project";
public @NotNull String getName() {
return "Bazel";
}

@Nullable
Expand Down Expand Up @@ -72,7 +73,7 @@ public boolean canOpenProject(VirtualFile file) {

@Override
public boolean isStrongProjectInfoHolder() {
return Registry.is("bazel.project.auto.open.if.present", true);
return Registry.is("bazel.project.auto.open.if.present", false);
}

@Override
Expand Down