Skip to content

Autocomplete not working for implicitly imported Schema namespace #2271

@Feldhacker

Description

@Feldhacker

Summary

The Schema namespace is implicitly imported by Salesforce but is not available for autocompletion.

Steps To Reproduce:

  1. Create a new Apex class and method.
  2. Declare a variable like "SObjectField myField = null;"
  3. As you start typing "SObjectF", autocomplete should be available but is not.

Expected result

Autocomplete should work as expected for classes in the Schema namespace without having to fully-qualify them.

Actual result

Autocomplete is not available.

Additional information

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_schema_namespace_using.htm

VS Code Version: 1.46.0
SFDX CLI Version: sfdx-cli/7.60.0-e2bb2907cb win32-x64 node-v10.15.3
OS and version: Windows 10 Enterprise 1809

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions