dbalek commented on a change in pull request #2878:
URL: https://github.com/apache/netbeans/pull/2878#discussion_r612243951



##########
File path: 
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
##########
@@ -1462,10 +1471,12 @@ public void didChange(DidChangeTextDocumentParams 
params) {
     @Override
     public void didClose(DidCloseTextDocumentParams params) {
         try {
+            String uri = params.getTextDocument().getUri();
+            upToDateTests.remove(uri);
             // the order here is important ! As the file may cease to exist, 
it's
             // important that the doucment is already gone form the client.
-            openedDocuments.remove(params.getTextDocument().getUri());
-            FileObject file = fromURI(params.getTextDocument().getUri(), true);
+            openedDocuments.remove(uri);

Review comment:
       Fixed.




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