You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in #824 (comment), a number of optimizations related to the server initialization could be implemented:
4- WorkspaceDiagnosticsHandler is added before JDT LS is initialized when the initialization lasts more than five minutes. See JobHelpers.waitForInitializeJobs()
VS Code 0.42.0 sends 4800+ the publishDiagnostics events. if we add WorkspaceDiagnosticsHandler after the initialization, VS Code sends 1080 events.
5 - Java LS watches changed files before it is initialized. We can't stop watchers that are statically added - https://github.com/redhat-developer/vscode-java/blob/master/src/extension.ts#L60. I have removed those watchers from vscode-java and added them dynamically to Java LS. VS Code sends 5800 didChangeWatchedFiles events when importing the che project. If watchers are registered after initializing Java LS, VS Code won't send any events. Related issue: #926
6 - The VS Code Java client adds the '/src/' watcher. That's why VS Code sometimes sends duplicate didChangeWatchedFiles events if a project has source folders within the src directory. I have skipped all watchers containing the /src/ string in their path.
7 - org.eclipse.jdt.ls.core.internal.managers.ProjectsManager.initializeProjects(Collection, IProgressMonitor) runs as a Java runnable which is not necessary because the isAutoBuilding property is false in that moment. I have removed it.
The part with the file watchers is actually related to #926
The text was updated successfully, but these errors were encountered:
As described in #824 (comment), a number of optimizations related to the server initialization could be implemented:
The part with the file watchers is actually related to #926
The text was updated successfully, but these errors were encountered: