Skip to content

Commit

Permalink
fix: remove strongInfoHolder flag, so users can choose which plugin t… (
Browse files Browse the repository at this point in the history
bazelbuild#7092)

* fix: remove strongInfoHolder flag, so users can choose which plugin to use on import

* Update AutoImportProjectOpenProcessor.java

* Update BlazeProjectOpenProcessor.java
  • Loading branch information
tpasternak authored and dkashyn-sfdc committed Dec 2, 2024
1 parent 243928d commit 906a4eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit 906a4eb

Please sign in to comment.