fix(editor): restore custom snippet trigger matching

This commit is contained in:
zipg authored and GitHub committed 2026-07-30 00:08:04 +08:00
1 parent 682b9d53c5
commit 87ef514188
5 files changed
+80 -2

No files matched your search

@@ -1191,6 +1191,7 @@ export interface SqlCompletionForeignKey {
export interface SqlCompletionItem {
label: string;
filterText?: string;
type: "keyword" | "table" | "column" | "snippet" | "function" | "schema";
detail?: string;
info?: string;
@@ -3971,6 +3972,7 @@ function buildSnippetItems(prefix: string, snippets: SqlSnippet[], keywordCase?:
const apply = applyBuiltinSnippetKeywordCase(snippet, applyBuiltinSnippetPlaceholders(snippet, resolvedBody), keywordCase);
return {
label: snippet.label,
filterText: snippet.prefix,
type: "snippet" as const,
detail: body,
apply,