feat(editor): resolve table hover across schemas in current database

This commit is contained in:
Mo-Moore authored and GitHub committed 2026-09-17 14:32:45 +08:00
1 parent 90ad4e62e6
commit 254b9baaff
21 files changed
+675 -29

No files matched your search

+1 -1
View File
@@ -643,7 +643,7 @@ export function splitQualifiedIdentifier(identifier: string): string[] {
}
/** Match identifier against known table names (case-insensitive). Supports qualified identifiers like schema.table. */
export function matchTable<T extends { name: string; database?: string; schema?: string }>(identifier: string, tables: T[]): T | null {
export function matchTable<T extends { name: string; database?: string; schema?: string }>(identifier: string, tables: readonly T[]): T | null {
const parts = splitQualifiedIdentifier(identifier);
const normalizedIdentifier = parts.length > 0 ? parts.join(".").toLowerCase() : identifier.toLowerCase();