Skip to content

Commit 4e85ca9

Browse files
committed
Simplify getTagCompletions
1 parent ff469a1 commit 4e85ca9

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
@@ -757,18 +757,14 @@ function getTagCompletions(): CompletionItem[] {
757757
}
758758

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

774770
function getPatternMatchCompletions(): CompletionItem[] {

0 commit comments

Comments
 (0)