Summary
The Salesforce Org Browser fails to load and throws a registration error in the Cursor IDE: Element with id CustomObject:Account is already registered. This occurs even in brand-new projects using the latest version of the Salesforce Extension Pack.
Steps To Reproduce:
- Open a Salesforce DX project in Cursor IDE.
- Ensure the latest Salesforce Extension Pack is installed.
- Authorize an org and set it as the default.
- Open the Org Browser.
Attempt to load or refresh metadata mainly issue with "Custom Objects".
Expected result
The Org Browser should display the tree of metadata components (Custom Objects, Apex Classes, etc.) normally.
Actual result
An error toast appears stating: "Element with id CustomObject:Account is already registered". The Org Browser remains empty or fails to expand metadata.
Additional information
This issue is specific to the Cursor IDE environment.
It persists after creating a completely new project and re-authorizing the org.
It appears to be an internal collision where the TreeView provider attempts to register the Account object (or others) multiple times.
Salesforce Extension Version in VS Code: 66.5.4
Salesforce CLI Version: @salesforce/cli/2.130.9 win32-x64 node-v22.22.2
OS and version: Windows 11
VS Code version: 1.105.1
Most recent version of the extensions where this was working: 60.11.0
Summary
The Salesforce Org Browser fails to load and throws a registration error in the Cursor IDE: Element with id CustomObject:Account is already registered. This occurs even in brand-new projects using the latest version of the Salesforce Extension Pack.
Steps To Reproduce:
Attempt to load or refresh metadata mainly issue with "Custom Objects".
Expected result
The Org Browser should display the tree of metadata components (Custom Objects, Apex Classes, etc.) normally.
Actual result
An error toast appears stating: "Element with id CustomObject:Account is already registered". The Org Browser remains empty or fails to expand metadata.
Additional information
This issue is specific to the Cursor IDE environment.
It persists after creating a completely new project and re-authorizing the org.
It appears to be an internal collision where the TreeView provider attempts to register the Account object (or others) multiple times.
Salesforce Extension Version in VS Code: 66.5.4
Salesforce CLI Version: @salesforce/cli/2.130.9 win32-x64 node-v22.22.2
OS and version: Windows 11
VS Code version: 1.105.1
Most recent version of the extensions where this was working: 60.11.0