fix(completion): include PostgreSQL function parameters
This commit is contained in:
11 files changed
+166
-7
No files matched your search
@@ -5130,6 +5130,7 @@ export const useConnectionStore = defineStore("connection", () => {
|
||||
parentSchema: candidate.parent_schema ?? undefined,
|
||||
parentName: candidate.parent_name ?? undefined,
|
||||
dataType,
|
||||
signature: candidate.signature ?? undefined,
|
||||
comment: candidate.comment ?? null,
|
||||
applyName: completionCandidateApplyName(candidate.name, candidate.schema, preferredSchema),
|
||||
boost: oracleMetadata ? completionCandidateSchemaBoost(candidate.schema, preferredSchema) : completionRoutineSchemaBoost(candidate.schema, preferredSchema),
|
||||
@@ -5736,7 +5737,7 @@ export const useConnectionStore = defineStore("connection", () => {
|
||||
const seen = new Set<string>();
|
||||
const deduped: SqlCompletionObject[] = [];
|
||||
for (const object of objects) {
|
||||
const key = `${object.type}:${object.schema ?? ""}:${object.name}:${object.parentName ?? ""}`.toLowerCase();
|
||||
const key = `${object.type}:${object.schema ?? ""}:${object.name}:${object.parentName ?? ""}:${object.signature?.trim() ?? ""}`.toLowerCase();
|
||||
if (seen.has(key)) continue;
|
||||
seen.add(key);
|
||||
deduped.push(object);
|
||||
|
||||
Reference in new issue
Block a user