File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/java/com/redhat/devtools/lsp4ij/launching/templates Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -127,22 +127,23 @@ public Set<String> getDisablePromotionFor() {
127
127
* @return {@code true} if the template should be promoted; {@code false} otherwise.
128
128
*/
129
129
public boolean isPromotable () {
130
+ if (promotable != null ) {
131
+ return promotable ;
132
+ }
130
133
if (disablePromotionFor == null || disablePromotionFor .isEmpty ()) {
131
134
return true ;
132
135
}
133
- if (promotable == null ) {
134
- promotable = computePromotable ();
135
- }
136
+ promotable = computePromotable ();
136
137
return promotable ;
137
138
}
138
139
139
140
private boolean computePromotable () {
140
141
for (var pluginId : disablePromotionFor ) {
141
142
if (isPluginInstalled (pluginId )) {
142
- return true ;
143
+ return false ;
143
144
}
144
145
}
145
- return false ;
146
+ return true ;
146
147
}
147
148
148
149
private static boolean isPluginInstalled (String pluginIdString ) {
You can’t perform that action at this time.
0 commit comments