JaroslavTulach commented on a change in pull request #3042:
URL: https://github.com/apache/netbeans/pull/3042#discussion_r667648303
##########
File path:
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/Server.java
##########
@@ -829,4 +831,22 @@ public void logMessage(MessageParams message) {
logWarning(message);
}
};
+
+
+ /**
+ * Hacky way to enable or disable Groovy support. Since it is hack, it
will disable Groovy for the whole NBJLS, not just a specific client / project.
Should
+ * be revisited after NetBeans 12.5, after Groovy parsing improves
+ * @param caps
+ */
+ private static void hackConfigureGroovySupport(NbCodeClientCapabilities
caps) {
+ boolean b = caps.wantsGroovySupport();
+ try {
+ Class clazz =
Lookup.getDefault().lookup(ClassLoader.class).loadClass("org.netbeans.modules.groovy.editor.api.GroovyIndexer");
+ Method m = clazz.getDeclaredMethod("setIndexingEnabled",
Boolean.TYPE);
Review comment:
I see. There's a section in _arch.xml_ called `<answer
id="exec-reflection">` where groovy could _export_ this reflective API.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists