sdedic commented on a change in pull request #2641:
URL: https://github.com/apache/netbeans/pull/2641#discussion_r552550046



##########
File path: 
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/Debugger.java
##########
@@ -48,4 +60,41 @@ public static void startDebugger(InputStream in, 
OutputStream out) {
             Exceptions.printStackTrace(ex);
         }
     }
+    
+    private static class ConsumeWithLookup implements MessageConsumer {
+        private final MessageConsumer delegate;
+        private OperationContext topContext;
+
+        public ConsumeWithLookup(MessageConsumer delegate) {
+            this.delegate = delegate;
+        }
+        
+        @Override
+        public void consume(Message message) throws MessageIssueException, 
JsonRpcException {
+            InstanceContent ic = new InstanceContent();
+            ProxyLookup ll = new ProxyLookup(new AbstractLookup(ic), 
Lookup.getDefault());
+            // HACK: piggyback on LSP's client.
+            if (topContext == null) {

Review comment:
       Tracked as 
[NETBEANS-5218](https://issues.apache.org/jira/browse/NETBEANS-5218)




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

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