Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to definition of Apex method from LWC redirects to typings directory #4684

Open
randi274 opened this issue Feb 15, 2023 · 1 comment
Open
Labels
area:apex area:lwc status: triaged These items have been triaged and are in the backlog type:bug

Comments

@randi274
Copy link
Contributor

Summary

When I use CMD + Click or the formal "Go to Definition" command, on the follow line in an LWC file, I would expect to be redirected to the method itself. However, I am redirected to the typings directory, which isn't useful to show to our users.

Steps To Reproduce:

  1. Have an LWC file that points to an Apex method, such as:
    import getOrderItems from '@salesforce/apex/OrderController.getOrderItems';.
  2. Use CMD + Click or 'Go to Definition'
  3. You will be redirected to .sfdx > typings > lwc > apex > OrderController.ts

Expected result

I would be redirected to force-app > main > default > classes > OrderController.cls

Actual result

I am redirected to .sfdx > typings > lwc > apex > OrderController.ts

Additional information

Screen.Recording.2023-02-15.at.6.00.44.PM.mov

Salesforce Extension Version in VS Code: v57.2.1

SFDX CLI Version: sfdx-cli/7.183.1

OS and version: Mac Ventura 13.2

@git2gus
Copy link

git2gus bot commented Feb 15, 2023

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

@diyer diyer added the status: triaged These items have been triaged and are in the backlog label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:apex area:lwc status: triaged These items have been triaged and are in the backlog type:bug
Projects
None yet
Development

No branches or pull requests

2 participants