Skip to content

Commit 1f7420a

Browse files
authored
Merge pull request #233 from codefori/fix/call_qualified_procedure
Fix issue with calling qualified procedure
2 parents 46c70bb + 5eb0477 commit 1f7420a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/language/providers/completionProvider.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,17 @@ async function getCompletionItemsForTriggerDot(
290290
}
291291
} else {
292292

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

294-
const objectCompletions = await getObjectCompletions(
295-
curSchema,
296-
completionTypes
297-
);
298-
list.push(...objectCompletions);
297+
} else {
298+
const objectCompletions = await getObjectCompletions(
299+
curSchema,
300+
completionTypes
301+
);
302+
list.push(...objectCompletions);
303+
}
299304
}
300305

301306
return list;

0 commit comments

Comments
 (0)