From 1cdd41f62eab0b54ac559d4b70d9f39939b66ee7 Mon Sep 17 00:00:00 2001 From: Jinbo Wang Date: Tue, 12 Sep 2023 16:35:36 +0800 Subject: [PATCH] Log errors from project importer --- .../eclipse/jdt/ls/core/internal/managers/ProjectsManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/ProjectsManager.java b/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/ProjectsManager.java index c1adeb92ba..968742fc31 100644 --- a/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/ProjectsManager.java +++ b/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/ProjectsManager.java @@ -158,6 +158,7 @@ protected void importProjects(Collection rootPaths, IProgressMonitor moni } catch (CoreException e) { // if a rootPath import failed, keep importing the next rootPath importStatusCollection.add(e.getStatus()); + JavaLanguageServerPlugin.logException("Failed to import projects", e); } } if (!importStatusCollection.isOK()) { @@ -180,6 +181,7 @@ protected void importProjectsFromConfigurationFiles(Collection rootPaths, } catch (CoreException e) { // if a rootPath import failed, keep importing the next rootPath importStatusCollection.add(e.getStatus()); + JavaLanguageServerPlugin.logException("Failed to import projects", e); } } if (!importStatusCollection.isOK()) {