forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
954 stars 406 forks source link

Go To Definition doesn't work for Visualforce page custom controllers and extensions #4575

Open davidchengIC opened 1 year ago

davidchengIC commented 1 year ago

Summary

Go To Definition does not work when viewing a Visualforce page and trying to navigate to the custom controller or extension. I get a toast message No Definition Found for [class name]. I have only one JDK installed on my machine (Zulu).

Steps To Reproduce:

  1. Open any Visualforce page with a controller or extension class.
  2. Right-click the controller / extension name and choose Go To Definition.

Expected result

The controller class is opened in a new tab.

Actual result

toast message No Definition Found for [class name]

Additional information

Screen Shot 2022-12-07 at 4 48 58 PM

Salesforce Extension Version in VS Code: 56.5.1

SFDX CLI Version: 7.178.0

OS and version: OS X 12.6.1

git2gus[bot] commented 1 year ago

This issue has been linked to a new work item: W-12212689

randi274 commented 1 year ago

I was able to reproduce this pretty easily - something strange seems to be up with the visualforce extension. I am seeing auto-completion, but nothing for hover, references or go-to-definition, and the extension seems to be having difficult starting up.