diff options
Diffstat (limited to 'src/main/java/org/javacs/JavaLanguageServer.java')
-rw-r--r-- | src/main/java/org/javacs/JavaLanguageServer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/javacs/JavaLanguageServer.java b/src/main/java/org/javacs/JavaLanguageServer.java index 5932e21..f6d8d8b 100644 --- a/src/main/java/org/javacs/JavaLanguageServer.java +++ b/src/main/java/org/javacs/JavaLanguageServer.java @@ -627,7 +627,7 @@ class JavaLanguageServer extends LanguageServer { || activeFileCacheVersion != FileStore.version(uri)) { LOG.info("Recompile active file..."); if (activeFileCache != null) activeFileCache.close(); - activeFileCache = compiler.compileBatch(Collections.singleton(uri)); + activeFileCache = compiler.compileFile(uri); activeFileCacheFile = uri; activeFileCacheVersion = FileStore.version(uri); } @@ -1141,7 +1141,7 @@ class JavaLanguageServer extends LanguageServer { if (!outOfDate.isEmpty()) { // Compile all files that need to be updated in a batch outOfDate.add(toUri); - try (var batch = compiler.compileBatch(outOfDate)) { + try (var batch = compiler.compileUris(outOfDate)) { // Find all declarations in toFile var toEls = batch.declarations(toUri); |