fix(sql-completion): respect keyword and function casing

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-08-02 09:01:36 +08:00
1 parent 61dc49ca4d
commit 3e779d24d7
4 files changed
+168 -24

No files matched your search

@@ -2749,6 +2749,7 @@ async function provideSqlCompletions(context: CompletionContext) {
databaseType: snippetDatabaseType.value,
currentSchema: props.schema,
keywordCase: settingsStore.editorSettings.sqlFormatter.keywordCase,
functionCase: settingsStore.editorSettings.sqlFormatter.functionCase,
autoAliasTables: settingsStore.editorSettings.autoAliasTables,
});
return buildCompletionResult(items, position - completionContext.prefix.length, getSqlCompletionResultValidFor(fullDoc, position));
@@ -2808,6 +2809,7 @@ async function provideSqlCompletions(context: CompletionContext) {
databaseType: snippetDatabaseType.value,
currentSchema: props.schema,
keywordCase: settingsStore.editorSettings.sqlFormatter.keywordCase,
functionCase: settingsStore.editorSettings.sqlFormatter.functionCase,
autoAliasTables: settingsStore.editorSettings.autoAliasTables,
});
return buildCompletionResult(items, position - completionContext.prefix.length, getSqlCompletionResultValidFor(fullDoc, position));
@@ -3023,6 +3025,7 @@ function buildLocalSqlCompletionResult(completionContext: ReturnType<typeof getS
databaseType: snippetDatabaseType.value,
currentSchema: scope.schema,
keywordCase: settingsStore.editorSettings.sqlFormatter.keywordCase,
functionCase: settingsStore.editorSettings.sqlFormatter.functionCase,
autoAliasTables: settingsStore.editorSettings.autoAliasTables,
});
@@ -3482,6 +3485,7 @@ async function performAsyncCompletionWithResult(epoch: number, completionContext
databaseType: snippetDatabaseType.value,
currentSchema: scope.schema,
keywordCase: settingsStore.editorSettings.sqlFormatter.keywordCase,
functionCase: settingsStore.editorSettings.sqlFormatter.functionCase,
autoAliasTables: settingsStore.editorSettings.autoAliasTables,
});