Skip to content

Commit 38abebf

Browse files
committed
Adding implementation for EssentialHighlightingRestarterDisablement
1 parent bb32225 commit 38abebf

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

base/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ intellij_plugin_library(
6868
"intellij-ue-2023.3": [],
6969
"intellij-2024.1": [],
7070
"intellij-ue-2024.1": [],
71+
"intellij-2024.2": [],
72+
"intellij-ue-2024.2": [],
73+
"intellij-2024.3": ["src/META-INF/blaze-base-243.xml"],
74+
"intellij-ue-2024.3": ["src/META-INF/blaze-base-243.xml"],
7175
"clion-2022.3": [],
7276
"clion-2023.1": [],
7377
"clion-2023.2": [],
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!--
2+
~ Copyright 2024 The Bazel Authors. All rights reserved.
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
<idea-plugin>
17+
<extensions defaultExtensionNs="com.intellij">
18+
<daemon.essentialHighlightingRestarterDisablement implementation="com.google.idea.blaze.base.qsync.QuerySyncEssentialHighlightingRestarterDisablement"/>
19+
</extensions>
20+
</idea-plugin>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.google.idea.blaze.base.qsync;
2+
3+
import com.google.idea.blaze.base.settings.Blaze;
4+
import com.google.idea.blaze.base.settings.BlazeImportSettings;
5+
import com.intellij.codeInsight.daemon.EssentialHighlightingRestarterDisablement;
6+
import com.intellij.openapi.project.Project;
7+
import org.jetbrains.annotations.NotNull;
8+
9+
public class QuerySyncEssentialHighlightingRestarterDisablement implements EssentialHighlightingRestarterDisablement {
10+
11+
@Override
12+
public boolean shouldBeDisabledForProject(@NotNull Project project) {
13+
return Blaze.getProjectType(project) == BlazeImportSettings.ProjectType.QUERY_SYNC;
14+
}
15+
}

0 commit comments

Comments
 (0)