We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c70bb commit 5eb0477Copy full SHA for 5eb0477
src/language/providers/completionProvider.ts
@@ -290,12 +290,17 @@ async function getCompletionItemsForTriggerDot(
290
}
291
} else {
292
293
+ if (currentStatement.type === StatementType.Call) {
294
+ const procs = await getProcedures([curRef], getDefaultSchema());
295
+ list.push(...procs);
296
- const objectCompletions = await getObjectCompletions(
- curSchema,
- completionTypes
297
- );
298
- list.push(...objectCompletions);
+ } else {
+ const objectCompletions = await getObjectCompletions(
299
+ curSchema,
300
+ completionTypes
301
+ );
302
+ list.push(...objectCompletions);
303
+ }
304
305
306
return list;
0 commit comments