Raw List Parameter in @InvocableMethod Breaks Apex Member Completion in VS Code

A developer found that member completion stopped working across an entire Apex class after writing a raw List parameter in an @InvocableMethod. The Apex language server (jorje) in the Salesforce Extension Pack crashes on collection parameters that lack a type argument, because its semantic checks expect exactly one element type and receive none. The server logs the exception without notifying the user, leaving the file with unresolved types until the signature is corrected. The author measured which signature shapes trigger the failure across 274 cases, finding that raw collections in @InvocableMethod, static @AuraEnabled, global, and webservice methods can crash parsing. A separate parser mechanism also drops whole methods when a raw collection is used as a return type. The author describes how their VS Code extension, Virga, now handles these cases.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in