Missing preference for vscode-spring-boot. Reset parser.

This commit is contained in:
aboyko
2022-08-08 15:23:08 -04:00
parent afe6cd774a
commit ab5672acc4
2 changed files with 10 additions and 8 deletions

View File

@@ -93,14 +93,11 @@ public class RewriteCompilationUnitCache implements DocumentContentProvider, Dis
Optional<IJavaProject> project = projectFinder.find(new TextDocumentIdentifier(uri.toString()));
if (project.isPresent()) {
// TODO There seems to be an issue with java parser #reset() call. After
// resetting it
// still complains that it needs to be reset
// JavaParser parser = javaParsers.getIfPresent(project.get());
// if (parser != null) {
// parser.reset();
// }
javaParsers.invalidate(project.get());
JavaParser parser = javaParsers.getIfPresent(project.get());
if (parser != null) {
parser.reset();
}
// javaParsers.invalidate(project.get());
}
}
}

View File

@@ -552,6 +552,11 @@
"HINT",
"ERROR"
]
},
"boot-java.rewrite.reconcile": {
"type": "boolean",
"default": false,
"description": "Experimental reconciling for Java source based on Rewrite project"
}
}
},