fix(editor): trigger column completion after SELECT keyword

This commit is contained in:
_Mr丶s ゛😁® authored and GitHub committed 2026-09-25 09:41:04 +08:00
1 parent 66682b12a6
commit 986faa7584
2 files changed
+19

No files matched your search

@@ -1839,6 +1839,7 @@ export function shouldAutoOpenSqlCompletion(sql: string, cursor: number, options
function shouldAutoOpenColumnCompletion(context: SqlCompletionContext, sql: string, cursor: number, databaseType: DatabaseType | undefined): boolean {
if (!context.suggestColumns || context.referencedTables.length === 0) return false;
if (context.prefix.length > 0) return true;
if (context.selectListColumnContext) return true;
return isColumnCompletionExpressionStart(sql.slice(0, cursor), databaseType);
}