Skip to content

Commit 7e99953

Browse files
committed
Simplify getPipelineCompletions
1 parent bec2253 commit 7e99953

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
@@ -884,10 +884,8 @@ function getTypeCompletions(): CompletionItem[] {
884884
}
885885

886886
function getPipelineCompletions(): CompletionItem[] {
887-
const completions: CompletionItem[] = [];
888-
889-
// Add common pipeline operators
890-
completions.push(
887+
return [
888+
// Add common pipeline operators
891889
{
892890
label: "|>",
893891
kind: CompletionItemKind.Operator,
@@ -908,9 +906,8 @@ function getPipelineCompletions(): CompletionItem[] {
908906
detail: "Function composition",
909907
documentation: "Compose functions (left to right)",
910908
},
911-
);
912-
913-
return [...completions, ...getFunctionCompletions()];
909+
...getFunctionCompletions()
910+
];
914911
}
915912

916913
function getImportCompletions(): CompletionItem[] {

0 commit comments

Comments
 (0)