diff options
author | George Fraser <george@fivetran.com> | 2019-01-06 19:04:24 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-06 19:04:24 -0800 |
commit | af922a08f685898cca00da4e10f45cbf7de5cd4a (patch) | |
tree | 716911bbb06956332991fa4a21bfce1364fb82ca | |
parent | de4d59994fdd4fc6433c0b832f27c7245116184a (diff) | |
download | java-language-server-af922a08f685898cca00da4e10f45cbf7de5cd4a.zip |
Fix
-rw-r--r-- | src/main/java/org/javacs/JavaCompilerService.java | 2 |
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); |