Skip to content

Commit

Permalink
Merge pull request #233 from codefori/fix/call_qualified_procedure
Browse files Browse the repository at this point in the history
Fix issue with calling qualified procedure
  • Loading branch information
worksofliam authored Jun 17, 2024
2 parents 46c70bb + 5eb0477 commit 1f7420a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/language/providers/completionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,17 @@ async function getCompletionItemsForTriggerDot(
}
} else {

if (currentStatement.type === StatementType.Call) {
const procs = await getProcedures([curRef], getDefaultSchema());
list.push(...procs);

const objectCompletions = await getObjectCompletions(
curSchema,
completionTypes
);
list.push(...objectCompletions);
} else {
const objectCompletions = await getObjectCompletions(
curSchema,
completionTypes
);
list.push(...objectCompletions);
}
}

return list;
Expand Down

0 comments on commit 1f7420a

Please sign in to comment.