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 not working #366

Open
eppixdev opened this issue Oct 15, 2019 · 8 comments
Open

Go to definition not working #366

eppixdev opened this issue Oct 15, 2019 · 8 comments

Comments

@eppixdev
Copy link

Steps to reproduce:

  1. Install Flow Language Support
  2. Disable TypeScript and JavaScript built-in extension
  3. Select a function > Go to Definition > Results in "No definition found for 'function called'"
@Mayank1791989
Copy link
Contributor

@eppixdev Share sample code.

@eppixdev
Copy link
Author

eppixdev commented Oct 16, 2019

const sum = (a, b) => {
  return a + b;
};

sum(1, 2);

Select sum function call > go to definition > No definition found. Works fine with Flow extension disabled and TS and JS extension enabled.

@Mayank1791989
Copy link
Contributor

You have to add // @flow top of file to tell flow to run on this file.

@eppixdev
Copy link
Author

eppixdev commented Oct 16, 2019 via email

@Mayank1791989
Copy link
Contributor

@eppixdev Is it working now?

@eppixdev
Copy link
Author

@Mayank1791989 No, unfortunately still having the same issues

@imondal007
Copy link

any solution?

@karankumar89
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants