.sfdx/tools/sobjects folder should be ignored by default?

Issue #1356 resolved
Xander Victory created an issue

Probably a bit of a niche case, but I opened the folder in VS Code and ran the Refresh Object Definitions command.

This adds .cls files inside .sfdx/tools/sobjects (among other things like lightning component .ts files) which then appears to get picked up by the index (ignoring the definitions in the symbol table zip - ctrl click goes to these files).

This causes symbol resolving to ‘forget’ things are descendants of SObject:

Resolved by marking the folder as excluded, but perhaps useful to do this by default

Comments (5)

  1. Scott Wells repo owner

    Thanks for filing, Xander. I just helped another user debug this issue earlier in the week and was already planning to do this work. It's always best to have an issue in the issue tracker to record progress, though.

  2. Scott Wells repo owner

    Delivered in 2.0.7.7. IC now shows a module validation error when there's a .sfdx/tools/sobjects folder that's not an exclusion itself or under an exclusion, and it adds that folder as an exclusion for the user.

  3. Log in to comment