Skip to content

Commit

Permalink
Always dispose AST on didClose
Browse files Browse the repository at this point in the history
Signed-off-by: Hope Hadfield <[email protected]>
  • Loading branch information
hopehadfield authored and rgrunber committed Aug 21, 2024
1 parent 365d396 commit 25b9fdd
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,7 @@ public ICompilationUnit handleClosed(DidCloseTextDocumentParams params) {
unit.becomeWorkingCopy(new NullProgressMonitor());
publishDiagnostics(unit, new NullProgressMonitor());
}
if (unit.equals(sharedASTProvider.getActiveJavaElement())) {
sharedASTProvider.disposeAST();
}
sharedASTProvider.disposeAST();
unit.discardWorkingCopy();
if (JDTUtils.isDefaultProject(unit)) {
File f = new File(unit.getUnderlyingResource().getLocationURI());
Expand Down

0 comments on commit 25b9fdd

Please sign in to comment.