forked from bazelbuild/intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply Apple-specific patches to the plugin
feat: Add commented-out gazelle target to default project view (bazelbuild#104) feat(release): Publish IntelliJ CE version of the plugin. (bazelbuild#103) feat(tools): Add script to check versions (bazelbuild#105) Radar: rdar://110389652 (Opening section of Bazel plugin setup confusing.) Co-authored-by: Daniel Wagner-Hall <dwagnerhall@apple.com> build: Add release pipeline for version checker (bazelbuild#109) Co-authored-by: Gibson Fahnestock <gib@apple.com> feat: capture sdk and bazel plugin info for radar (bazelbuild#117) * feat: capture sdk and bazel plugin info for radar * Fix issues for clion plugin version Co-authored-by: Joshua Harris <jharris33@apple.com> build(prb): Make prb test every version of released products build(ci): Increase timeout in Rio build(ci): Key version counters by product build(ci): Make apple version checker publish optional fix: Default to workspace to infer project name (bazelbuild#122) Instead of defaulting to "the parent directory of the project view file", which is rarely what we want. feat: Add support for cc_gtest_testsuite in BUILD files (bazelbuild#121) cleanup: Enable --test_output=errors by default
- Loading branch information
Simon Stewart
authored and
Borja Lorente
committed
Oct 24, 2023
1 parent
a0bd15c
commit da3508e
Showing
63 changed files
with
2,529 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ bazel-* | |
/.ijwb/ | ||
/.aswb/ | ||
/.clwb/ | ||
.cicd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
load( | ||
"//build_defs:build_defs.bzl", | ||
"intellij_plugin", | ||
"intellij_plugin_library", | ||
"stamped_plugin_xml", | ||
) | ||
load( | ||
"//:build-visibility.bzl", | ||
"INTELLIJ_PLUGINS_VISIBILITY", | ||
"PLUGIN_PACKAGES_VISIBILITY", | ||
) | ||
|
||
java_library( | ||
name = "apple", | ||
srcs = glob(["src/**/*.java"]), | ||
javacopts = ["-Xep:FutureReturnValueIgnored:OFF"], | ||
resources = glob(["src/resources/**/*"]), | ||
visibility = PLUGIN_PACKAGES_VISIBILITY, | ||
deps = [ | ||
"//base", | ||
"//common/actions", | ||
"//intellij_platform_sdk:jsr305", # unuseddeps: keep for @Nullable | ||
"//intellij_platform_sdk:plugin_api", | ||
"//sdkcompat", | ||
], | ||
) | ||
|
||
intellij_plugin_library( | ||
name = "plugin_library", | ||
plugin_xmls = ["src/META-INF/apple.xml"], | ||
visibility = PLUGIN_PACKAGES_VISIBILITY, | ||
deps = [":apple"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
<idea-plugin> | ||
<actions> | ||
<action | ||
id="Apple.Bazel.OpenFAQ" | ||
class="com.apple.idea.extensions.actions.OpenFAQ" | ||
text="Open IntelliJ Plugin FAQ" | ||
> | ||
</action> | ||
<action | ||
id="Apple.Bazel.FileRadar" | ||
class="com.apple.idea.extensions.actions.FileRadar" | ||
text="File a Radar" | ||
icon="apple.src.icons.AppleIcons.Radar" | ||
> | ||
</action> | ||
</actions> | ||
|
||
<extensions defaultExtensionNs="com.intellij"> | ||
<notificationGroup | ||
displayType="BALLOON" | ||
id="Apple.Bazel.NotificationGroup" | ||
/> | ||
</extensions> | ||
</idea-plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.apple.idea.extensions.actions; | ||
|
||
import apple.src.icons.AppleIcons; | ||
import com.google.idea.blaze.base.settings.Blaze; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.actionSystem.DefaultActionGroup; | ||
import com.intellij.openapi.project.Project; | ||
|
||
public class BazelAppleMenuGroup extends DefaultActionGroup { | ||
@Override | ||
public final void update(AnActionEvent e) { | ||
// Don't hide the menu if project is null: it will be null temporarily while loading a | ||
// Blaze project, and sometimes stays hidden permanently if we hide it during loading. | ||
Project project = e.getProject(); | ||
if (project != null && !Blaze.isBlazeProject(project)) { | ||
e.getPresentation().setEnabledAndVisible(false); | ||
return; | ||
} | ||
|
||
e.getPresentation().setEnabledAndVisible(true); | ||
e.getPresentation().setText("&🍏Apple"); | ||
} | ||
|
||
@Override | ||
public boolean isDumbAware() { | ||
return true; | ||
} | ||
} |
Oops, something went wrong.