jtulach commented on code in PR #7579:
URL: https://github.com/apache/netbeans/pull/7579#discussion_r1682827605


##########
java/java.hints/src/org/netbeans/modules/java/hints/infrastructure/JavaErrorProvider.java:
##########
@@ -94,7 +95,9 @@ public class JavaErrorProvider implements ErrorProvider {
     @Override
     public List<? extends Diagnostic> computeErrors(Context context) {
         List<Diagnostic> result = new ArrayList<>();
-
+        if (!GraphicsEnvironment.isHeadless()) {

Review Comment:
   The `java.lsp.server` project is using `isHeadless()` to detect whether the 
code is running in VSCode or in NetBeans IDE. Using it here to solve 
https://github.com/apache/netbeans/pull/7579#issuecomment-2236478654 inquiry.



-- 
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

Reply via email to