Skip to content

Support direct SObject refs on definition provider - #360

Merged
pwrightcertinia merged 3 commits into
mainfrom
definition-sobject-type
Jul 24, 2025
Merged

pwrightcertinia merged 3 commits into
mainfrom
definition-sobject-type

Conversation

@pwrightcertinia

@pwrightcertinia pwrightcertinia commented Jul 23, 2025 •

Copy link
Copy Markdown
Contributor

Before this PR - it is only possible to get to an sobject file by executing definition provider on a validated ref like ... MyObject__c.SObjectType;

Now you can use the type name like MyObject__c record;/List<MyObject__c> as well.

The change I made makes it more generic and shares the existing logic it used when resolved from a validation. So if there were any other holes these might be fixed too.

@pwrightcertinia
pwrightcertinia merged commit 9fbe329 into main Jul 24, 2025
@pwrightcertinia
pwrightcertinia deleted the definition-sobject-type branch July 24, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant