-
Notifications
You must be signed in to change notification settings - Fork 426
Description
Summary
I'm trying to work with the Apex files added to my project by the Apex Language Server and associated VSCode extension. Some of these files include patterns that are not valid Apex.
Specifically I'm finding that nested classes have constructor names that include the outer class as a namespace for the constructor.
For example: in .sfdx/tools/252/StandardApexLibrary/Database/DMLOptions.cls
I see lines such as
global DMLOptions.AssignmentRuleHeader() { }
which, to be considered valid Apex, should be
global AssignmentRuleHeader() { }
Additional information
It appears the Jorje parser is able to process this format but if I build a class and try and deploy it to Salesforce it is rejected with Invalid constructor name: OUTER_CLASS.INNER_CLASS
.
Salesforce Extension Version in VS Code: 62.14.1
Salesforce CLI Version: @salesforce/cli/2.76.7 darwin-arm64 node-v22.13.1
OS and version: MacOS 15.3
VS Code version: 1.96.2
Most recent version of the extensions where this was working: never