Skip to content

Commit 368e754

Browse files
committed
Simplify getTagCompletions
1 parent bcbd986 commit 368e754

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

server/src/server.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -758,18 +758,14 @@ function getTagCompletions(): CompletionItem[] {
758758
}
759759

760760
function getWhereClauseCompletions(): CompletionItem[] {
761-
const completions: CompletionItem[] = [];
762-
763-
completions.push({
761+
return [{
764762
label: ". identifier = expression",
765763
kind: CompletionItemKind.Snippet,
766764
detail: "Where clause",
767765
documentation: "Define a variable in a where clause",
768766
insertText: ". ${1:identifier} = ${2:expression}",
769767
insertTextFormat: InsertTextFormat.Snippet,
770-
});
771-
772-
return [...completions, ...getGlobalCompletions()];
768+
}, ...getGlobalCompletions()];
773769
}
774770

775771
function getPatternMatchCompletions(): CompletionItem[] {

0 commit comments

Comments
 (0)