Fix lag in hyper-links in Java files
This commit is contained in:
@@ -343,9 +343,10 @@ public class SimpleTextDocumentService implements TextDocumentService, DocumentE
|
||||
return async.invoke(() -> {
|
||||
ReferencesHandler h = this.referencesHandler;
|
||||
if (h != null) {
|
||||
return h.handle(params);
|
||||
List<? extends Location> list = h.handle(params);
|
||||
return list != null && list.isEmpty() ? null : list;
|
||||
}
|
||||
return Collections.emptyList();
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ import org.springframework.ide.vscode.commons.util.text.LanguageId;
|
||||
import org.springframework.ide.vscode.commons.util.text.TextDocument;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
|
||||
@Configuration
|
||||
@@ -96,7 +95,7 @@ public class LanguageServerAutoConf {
|
||||
return handler.handle(position);
|
||||
}
|
||||
}
|
||||
return ImmutableList.of();
|
||||
return null;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user