Achal1607 commented on code in PR #8897:
URL: https://github.com/apache/netbeans/pull/8897#discussion_r2425337234


##########
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java:
##########
@@ -570,8 +572,18 @@ public void finished(boolean success) {
         } else if (launchType == LaunchType.RUN_TEST) {
             mainSource = false;
         } else {
-            FileObject fileRoot = sourceCP != null ? 
sourceCP.findOwnerRoot(toRun) : null;
-            mainSource = fileRoot == null || 
UnitTestForSourceQuery.findSources(fileRoot).length == 0;
+            mainSource = false;
+            if (sourceCP != null) {

Review Comment:
   Sorry, my bad. Thanks for noticing. I will restore the previous behaviour.



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