Skip to content

Commit a34697d

Browse files
committed
Simplify getPipelineCompletions
1 parent aefde5a commit a34697d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

server/src/server.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -879,10 +879,8 @@ function getTypeCompletions(): CompletionItem[] {
879879
}
880880

881881
function getPipelineCompletions(): CompletionItem[] {
882-
const completions: CompletionItem[] = [];
883-
884-
// Add common pipeline operators
885-
completions.push(
882+
return [
883+
// Add common pipeline operators
886884
{
887885
label: "|>",
888886
kind: CompletionItemKind.Operator,
@@ -903,9 +901,8 @@ function getPipelineCompletions(): CompletionItem[] {
903901
detail: "Function composition",
904902
documentation: "Compose functions (left to right)",
905903
},
906-
);
907-
908-
return [...completions, ...getFunctionCompletions()];
904+
...getFunctionCompletions()
905+
];
909906
}
910907

911908
function getImportCompletions(): CompletionItem[] {

0 commit comments

Comments
 (0)