summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-06 19:04:24 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-06 19:04:24 -0800
commitaf922a08f685898cca00da4e10f45cbf7de5cd4a (patch)
tree716911bbb06956332991fa4a21bfce1364fb82ca /src/main
parentde4d59994fdd4fc6433c0b832f27c7245116184a (diff)
downloadjava-language-server-af922a08f685898cca00da4e10f45cbf7de5cd4a.zip
Fix
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/javacs/JavaCompilerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/javacs/JavaCompilerService.java b/src/main/java/org/javacs/JavaCompilerService.java
index 0a6a136..2d380a1 100644
--- a/src/main/java/org/javacs/JavaCompilerService.java
+++ b/src/main/java/org/javacs/JavaCompilerService.java
@@ -143,9 +143,9 @@ public class JavaCompilerService {
for (var uri : uris) {
if (SourcePath.isJavaFile(uri)) {
files.add(new File(uri));
- ;
}
}
+ if (files.isEmpty()) return List.of();
// TODO should get current contents of open files from FileStore
var sources = fileManager.getJavaFileObjectsFromFiles(files);