Complete: add support for SObject.sObjectType

Issue #655 resolved
Alexander Johannes created an issue

It is possible to write SObject.sObjectType (e.g. Account.sObjectType, Opportunity.sObjectType) as a shorthand to obtain the concrete sObjectType.

IC does not support autocomplete on the sObjectType property. It tries to replace it with .getSObjectType() instead.

Comments (3)

  1. Scott Wells repo owner

    Alexander, it'll actually complete <SObjectType>.SObjectType fine as a Schema.SObjectType. The issue you're hitting is that you're using a leading lower-cased "s" so the closest match is getSObjectType(). Apex is obviously a case-insensitive language, but by default completions in IntelliJ IDEA are configured to use case-sensitive filtering. You can configure that under Settings>Editor>General>Code Completion by changing the value for Case sensitive completion to None. Please let me know if that doesn't give you the behavior you're wanting.

  2. Log in to comment