Skip to content

Commit 94079b7

Browse files
committed
Exclude duplicate calls from workspace preview
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 50e1e03 commit 94079b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/nextflow/lsp/services/script/WorkspacePreviewProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ private List<? extends Object> children(WorkflowNode node) {
6767
return new OutgoingCallsVisitor().apply(node).stream()
6868
.map(call -> TypeChecker.inferMethodTarget(call))
6969
.filter(mn -> mn instanceof ProcessNode || mn instanceof WorkflowNode)
70+
.distinct()
7071
.map(mn -> Map.of(
7172
"name", mn.getName(),
7273
"path", ast.getURI(mn).getPath()

0 commit comments

Comments
 (0)